hi guyz i have a problem with mbmenu extension that it does not hide the link which have child links here is my code
array('label'=>'Register','url'=>array('site/page&view=mypages.register','visible'=>Yii::app()->user->isGuest),
'items'=>array(
array('label'=>'Register As a Merchant','url'=>array('merchant/create'),
array('label'=>'Register As a Customer','url'=>array('customer/create'),
)
the register link is not hiding. what i do??? any suggetions??
<?php $this->widget('zii.widgets.CMenu',array(
'items'=>array(
array('label'=>'Register','url'=>array('site/page&view=mypages.register'),'visible'=>!Yii::app()->user->isGuest),
array('label'=>'Register As a Merchant'),'url'=>array('merchant/create'),
array('label'=>'Register As a Customer'),'url'=>array('customer/create'),
),
));
?>