[SOLVED] CMenu

Hello,

step by step I’m more familiar with yii. This framework is realy fantastic !

At the moment I build up the main menu for my application using CMenu like this:

$this->widget(‘zii.widgets.CMenu’, array( … ),

));

works fine.

But how can I access the properties ? Actualy the access is via the class instance (e.g. ‘$cmi’):

$cmi->activateItems = false;

But how can I do this in the code above ?

Thank you.

Scryii

You can write all your properties in the array.

Like that:




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

array( 'items'=>array(),

     'htmlOptions'=>array(),

     'activateItems'=>true

 ),

));



Thx.

It work’s.