YiiFoundation
  • Namespace
  • Class
  • Tree

Namespaces

  • foundation
    • enum
    • exception
    • helpers
    • widgets
      • base
  • PHP

Classes

  • Alert
  • ArrayHelper
  • Button
  • Foundation
  • Html
  • Icon
  • Nav
  • Panel
  • Pricing
  • Progress
  • Typo

Class Nav

Nav Helper renders different type of navigation markups.

Namespace: foundation\helpers
Package: foundation\helpers
Author: Antonio Ramirez <amigo.cobos@gmail.com>
Located at helpers/Nav.php

Methods summary

public static string
# side( array $items, array $htmlOptions = array() )

Generates a side nav

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

http://foundation.zurb.com/docs/components/side-nav.html
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

http://foundation.zurb.com/docs/components/sub-nav.html
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

foundation\exception\InvalidConfigException

Magic methods summary

YiiFoundation API documentation generated by ApiGen 2.8.0