Yii 1.1: verticalmenu2levels

This Yii extension consists of a 2-levels vertical menu. It is based on the "SMenu" extension.
5 followers

This Yii extension consists of a 2-levels vertical menu. It is based on the "SMenu" extension. The css code has been taken from http://cssmenumaker.com.

Requirements

Yii 1.1 or above

Usage

<?php
$this->widget('ext.verticalmenu2levels.VerticalMenu2Levels',
array(
"menu"=>array(
        array("url"=>array("route"=>"site/index",
                          'params'=>array('lang'=>'es')),
                          "label"=>'Home'),
 
          array("url"=>array(),
                       "label"=>'Products',
                      array("url"=>array(
                                   "link"=>"http://google.com",
                                  'htmlOptions'=>array('target'=>'_BLANK')),                               
                                   "label"=>"Product 1"),
                      array("url"=>array(
                                   "route"=>"site/product2",
                                  'params'=>array('lang'=>'es')),                                                                                                                      
                                   "label"=>"Product 2"),
                      array("url"=>array(
                                   "route"=>"site/product3",
                                  'params'=>array('lang'=>'es')),                                                                                                                      
                                   "label"=>"Product 3",
                                   "disabled"=>true
                                  ),                                                                                   
                        ),                                                                                                    
          array("url"=>array(),
                       "label"=>'About',
                      array("url"=>array(
                                   "route"=>"site/company",),                              
                                   "label"=>"Company"),
                      array("url"=>array(
                                   "route"=>"site/contact",),                                                                                                                      
                                   "label"=>"Contact"),                                    
                        ),
        array("url"=>array("route"=>"site/contact",),
                          "label"=>'Contact'),                                    
          ),
"menuID"=>"myMenu"
)
);
    ?>

Total 2 comments

#18625 report it
kaif at 2014/12/03 02:14am
Awesom extension

Thanks to Moginn and the team for such an simple installation and excellent extension. Highly recommended....

#18529 report it
kebyang1511 at 2014/11/11 11:53am
It WORKS!

Thanks man!.... Simple and effective..

I just downloaded the extension and extract...

copy paste the sample code... it worked...

all I need to do is to tweak the code... ! awesom!

Leave a comment

Please to leave your comment.

Create extension