Yii Framework Forum: Mbmenu - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Mbmenu Menu dinamik dan statik Rate Topic: -----

#1 User is offline   yuli 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 06-February 13

Posted 06 February 2013 - 10:07 PM

Hallo semua,

saya mau nanya nih, bagaimana cara menggabungkan menu dinamik (dari database) dengan menu statik pada mbmenu?
Dinamiknya yang ini : ListMenu::model()->getMenu()


<?php $this->widget('application.extensions.mbmenu.MbMenu',array(
'items'=>array(
array('label'=>'Home', 'url'=>array('/site/index')),

'items'=>ListMenu::model()->getMenu(),

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)

),
)); ?>



Thx a lot, guys!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users