Browse Source

Added missing doc.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
2c0a3ca6ba
  1. 3
      framework/yii/widgets/Menu.php

3
framework/yii/widgets/Menu.php

@ -64,6 +64,7 @@ class Menu extends Widget
* The token `{url}` will be replaced by the URL associated with this menu item, * The token `{url}` will be replaced by the URL associated with this menu item,
* and the token `{label}` will be replaced by the label of the menu item. * and the token `{label}` will be replaced by the label of the menu item.
* If this option is not set, [[linkTemplate]] or [[labelTemplate]] will be used instead. * If this option is not set, [[linkTemplate]] or [[labelTemplate]] will be used instead.
* - options: array, optional, the HTML attributes for the menu container tag.
*/ */
public $items = array(); public $items = array();
/** /**
@ -163,7 +164,7 @@ class Menu extends Widget
$n = count($items); $n = count($items);
$lines = array(); $lines = array();
foreach ($items as $i => $item) { foreach ($items as $i => $item) {
$options = isset($item['itemOptions']) ? $item['itemOptions'] : array(); $options = isset($item['options']) ? $item['options'] : array();
$class = array(); $class = array();
if ($item['active']) { if ($item['active']) {
$class[] = $this->activeCssClass; $class[] = $this->activeCssClass;

Loading…
Cancel
Save