Permalink
Browse files

update documentation #3

  • Loading branch information...
Nikolay I. Belichuk
Nikolay I. Belichuk committed Dec 3, 2012
1 parent 1e936b0 commit dc7c88595341c8908775d7feb177e7249dde41a2
Showing with 11 additions and 8 deletions.
  1. +11 −8 README.md
View
@@ -8,8 +8,9 @@ Examples:
How to install:
Download project from github and uncompress to protected/extensions foder.
-This extension has been designed as a widget. Its easy to use. For examples:
-Open your view for edit and define array $items. You can do this in the following way:
+This extension has been designed as a widget. Its easy to use.
+For examples:
+ open your view for edit and define array $items. You can do this in the following way:
$items = array(
array(
@@ -31,14 +32,16 @@ Open your view for edit and define array $items. You can do this in the followin
);
Array key explanation:
--Key name - menu item
--Key link - ancor for menu item
--Key icon - css suffix for menu item icon
--Key active - if current used controller / action equals to key active value - than menu item will be expanded -have additional class 'current'
--Key sub - array with sub menu items
+
+ -Key name - menu item
+ -Key link - ancor for menu item
+ -Key icon - css suffix for menu item icon
+ -Key active - if current used controller / action equals to key active value - than menu item will be expanded -have additional class 'current'
+ -Key sub - array with sub menu items
Then place next code:
-<?php $this->widget('ext.menu.EMenu', array('items' => $items)); ?>
+
+ $this->widget('ext.menu.EMenu', array('items' => $items));
Test your application. Take profit

0 comments on commit dc7c885

Please sign in to comment.