Class Nav
Nav Helper renders different type of navigation markups.
Methods summary
public static
string
|
#
side( array $items, array $htmlOptions = array() )
Generates a side nav
Parameters
- $items
array $items the link items to display as a side nav. The items have the following
format: <pre> array('label'=>'Item', 'url'=>'#',
'linkOptions'=>array(), 'itemOptions'=>array()) </pre>
- $htmlOptions
array $htmlOptions
Returns
string
See
|
public static
string
|
#
sub( array $items, array $htmlOptions = array() )
Generates a foundation sub nav
Generates a foundation sub nav
Parameters
- $items
array $items the link items to display as a side nav. The items have the following
format: <pre> array('label'=>'Item', 'url'=>'#',
'linkOptions'=>array(), 'itemOptions'=>array()) </pre>
- $htmlOptions
array $htmlOptions
Returns
string
See
|
public static
string
|
#
dropdown( array $items, boolean $encodeLabels = true )
Renders menu items. It differs from [[Dropdown]] widget as it is factorial to
render multi-level dropdown menus.
Renders menu items. It differs from [[Dropdown]] widget as it is factorial to
render multi-level dropdown menus.
Parameters
- $items
array $items the items to render
- $encodeLabels
boolean $encodeLabels whether to encode link labels or not
Returns
string the resulting dropdown element.
Throws
|
Magic methods summary