Secara default pengaturan MENU YII berada di :

../protected/view/layout/main.php


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

‘items’=>array( array(‘label’=>’Home’, ‘url’=>array(‘/site/index’)),

array(‘label’=>’About’, ‘url’=>array(‘/site/page’, ‘view’=>’about’)),

array(‘label’=>’Contact’, ‘url’=>array(‘/site/contact’)),

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

array(‘label’=>’Logout (‘.Yii::app()->user->name.’)’, ‘url’=>array(‘/site/logout’), ‘visible’=>!Yii::app()->user->isGuest)

),


Attribute :
‘visible’=>!Yii::app()->user->isGuest
Menu akan muncul jika user melakukan login.

Sumber : Anonymous