From 2c0a3ca6baa5bbe2f1dcc4d0637b7430565288a5 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Fri, 24 May 2013 13:17:53 -0400 Subject: [PATCH] Added missing doc. --- framework/yii/widgets/Menu.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/framework/yii/widgets/Menu.php b/framework/yii/widgets/Menu.php index d63f202..08088d3 100644 --- a/framework/yii/widgets/Menu.php +++ b/framework/yii/widgets/Menu.php @@ -63,7 +63,8 @@ class Menu extends Widget * - template: string, optional, the template used to render the content of 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. - * 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(); /** @@ -163,7 +164,7 @@ class Menu extends Widget $n = count($items); $lines = array(); foreach ($items as $i => $item) { - $options = isset($item['itemOptions']) ? $item['itemOptions'] : array(); + $options = isset($item['options']) ? $item['options'] : array(); $class = array(); if ($item['active']) { $class[] = $this->activeCssClass;