Having different names in menu

I am using my menu like this


$this->widget('zii.widgets.CMenu', array(

    'items'=>array(

        // Important: you need to specify url as 'controller/action',

        // not just as 'controller' even if default acion is used.

        array('label'=>'Home', 'url'=>array('site/index')),

        array('label'=>'Products', 'url'=>array('product/index'), 'items'=>array(

            array('label'=>'New Arrivals', 'url'=>array('product/new', 'tag'=>'new')),

            array('label'=>'Most Popular', 'url'=>array('product/index', 'tag'=>'popular')),

        )),

        array('label'=>'Login', 'url'=>array('site/login'), 'visible'=>Yii::app()->user->isGuest),

    ),

));



I am getting operations in my heading how can I change this I have multiple


$this->widget('zii.widgets.CMenu', array(

    'items'=>array(

on a single page and all are showing operations only I would like to have specific names for each menu

You have to add a public variable to Controller.php


public $title = 'Operations';

Then you have to assign this variable to the title of the portlet in column2.php


$this->beginWidget('zii.widgets.CPortlet', array(

                            'title'=>$this->title,

                    ));

And now you can change the title in every view like


$this->title = 'Menu';

Cheers, Pablo.

Thanks.

But I need to show many menu items like




Menu 1

-Home

-About Us




Menu 2

-Profile

-Settings


Menu 3

-Address

-Status



in each view there will be menu items like this. Each page will have menu items like this there will not be just one header

How will I achieve this?

Making three different portlets http://www.yiiframework.com/doc/blog/1.1/en/portlet.menu

Cheers, Pablo.