我希望能够根据给定的布局附加我的菜单。例如像下面这样的?,如果当前布局是 /entry,则 [Entries Background] 变得可见
<?php $this->widget('zii.widgets.CMenu',array(
'items'=>array(
array('label'=>'Entries', 'url'=>array('/entry'),'authItemName'=>'SuperUser','visible'=>Yii::app()->user->checkAccess('SuperUser')),
array('label'=>'Entries Background', 'url'=>array('/entry/more'),'authItemName'=>'SuperUser','visible'=>$this->layout = '/entry'),
),)); ?>
谢谢