Posted By

felohdez on 08/29/10


Tagged

textmate Yii


Versions (?)

widget-menu


 / Published in: Other
 

  1. <?php $this->widget('zii.widgets.CMenu',array(
  2. 'items'=>array(
  3. array('label'=>'Home', 'url'=>array('/site/index')),
  4. array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
  5. array('label'=>'Contact', 'url'=>array('/site/contact')),
  6. array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
  7. array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
  8. ),
  9. )); ?>
  10.  

Report this snippet  

You need to login to post a comment.