Dear Yii master,
I’m using cJuiTabs that should be a dynamic one, which means some of these tabs are invisible when user doesn’t have the authority to view it.
And my question is, is there anyway possible to do it?
just like this part
, 'visible' => !Yii::app()->user->isGuest
in the SMenu
$this->widget('application.extensions.menu.SMenu',
array(
"menu" => array(
array(
"url" => array("route" => "/rpd/index"),
"label" => "Home",
),
array(
"url" => array(), "label" => "Data Master",
array(
"url" => array('route' => 'rpd/msKecamatan'/* "route"=>"http://www.yiiframework.com",
"htmlOptions"=>array("target"=>"_BLANK") */),
"label" => "Kecamatan"),
array(
"url" => array("route" => "rpd/msDesa"),
"label" => "Desa"),
array(
"url" => array("route" => "/rpd/msUndang2"),
"label" => "Undang-Undang",),
array(
"url" => array("route" => "/rpd/msJabatan"),
"label" => "Jabatan"),
array(
"url" => array("route" => "/rpd/msSotkDesa"),
"label" => "SOTK Desa")
, 'visible' => !Yii::app()->user->isGuest
),
"stylesheet" => "menu_white.css",
"menuID" => "myMenu2",
"delay" => 3
)
);
thank you for your help…
*I’m sorry for my bad english