Having different names in menu

I am using my menu like this

$this->widget('zii.widgets.CMenu', 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(


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(



And now you can change the title in every view like

$this->title = 'Menu';

Cheers, Pablo.


But I need to show many menu items like

Menu 1


-About Us

Menu 2



Menu 3



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.