eflatmenu Yii extension for multilevel responsive menu

  1. Requirements
  2. Installation
  3. Usage
  4. Resources

Yii framework extension which provides a multi-level responsive menu using Font Awesome

Requirements

Tested with Yii 1.1.10 and 1.1.12. may work on other versions

Installation

  • Extract the file under protected/extensions folder.

Usage

$this->widget('application.extensions.eflatmenu.EFlatMenu', array(
    'items' => array(
        array('label' => 'Home', 'url' => array('/site/index'), 'active' => true, 'icon-class'=>'fa-home'),
        array('label' => 'About', 'url' => array('/site/page', 'view' => 'about')),
        array('label' => 'Contact', 'url' => array('/site/contact')),
        array('label'=>'Level 2 Menu', 'url'=>'#', 'items' => array(
            array('label' => 'Sub-Menu 1', 'url' => '#', 'icon-class'=>'fa-home'),
            array('label' => 'Level 3 Menu', 'url' => '#', 'items' => array(
                array('label' => 'Sub-Menu 1', 'url' => '#', 'icon-class'=>'fa-home'),
                 array('label' => 'Sub-Menu 2', 'url' => '#'),
            )),
        )),
        array('label' => 'Login', 'url' => array('site/login'), 'visible' => Yii::app()->user->isGuest),
        array('label' => 'Logout (' . Yii::app()->user->name . ')', 'url' => array('/site/logout'), 'visible' => !Yii::app()->user->isGuest)
    )
));

Resources

7 0
15 followers
1 931 downloads
Yii Version: Unknown
License: BSD-2-Clause
Category: User Interface
Developed by: Ibrar Turi
Created on: Jan 21, 2014
Last updated: 10 years ago

Downloads

show all

Related Extensions