EliteConf
 All Data Structures Namespaces Files Functions Variables Pages
zii\widgets Namespace Reference

Detailed Description

Freshy2Menu class file.

Author
Jonah Turnquist poppi.nosp@m.typo.nosp@m.p@gma.nosp@m.il.c.nosp@m.om
Qiang Xue qiang.nosp@m..xue.nosp@m.@gmai.nosp@m.l.co.nosp@m.m Copyright © 2008-2010 Yii Software LLC http://www.yiiframework.com/license/ Freshy2Menu displays a multi-level menu using nested HTML lists. The main property of Freshy2Menu is items}, which specifies the possible items in the menu. A menu item has three main properties: visible, active and items. The "visible" property specifies whether the menu item is currently visible. The "active" property specifies whether the menu item is currently selected. And the "items" property specifies the child menu items. The following example shows how to use Freshy2Menu: $this->widget('zii.widgets.Freshy2Menu', array( 'items'=>array( array('label'=>'Home', 'url'=>array('site/index')), array('label'=>'Products', 'url'=>array('product/index'), 'items'=>array( array('label'=>'New Arrivals', 'url'=>array('product/new', 'tag'=>'new')), array('label'=>'Most Popular', 'url'=>array('product/index', 'tag'=>'popular')), )), array('label'=>'Login', 'url'=>array('site/login'), 'visible'=>Yii::app()->user->isGuest), ), )); Jonah Turnquist poppi.nosp@m.typo.nosp@m.p@gma.nosp@m.il.c.nosp@m.om Qiang Xue qiang.nosp@m..xue.nosp@m.@gmai.nosp@m.l.co.nosp@m.m 1.1