Cportlet And Cmenu

hi,

i want to know where CMenu (in the layout) gets the items in this code?


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

						'title'=>'Operations',

						));

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

						'items'=>$this->menu,

						'htmlOptions'=>array('class'=>'operations'),

						));

					$this->endWidget();



thnx

By default this parameter is defined in file: protected/components/Controller.php.


/**

* @var array context menu items. This property will be assigned to {@link CMenu::items}.

*/

public $menu=array();

By default all controllers located in protected/controllers/ extends this class. You can change this array values inside controller action or in view file.