Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 911 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 911 Bytes

CI_menu_helper

CodeIgniter Menu helper for Twitter Bootstrap

Instalation

Just add file menu_helper.php to your CIroot/application/helpers/menu_helper.php
Warning This helper uses another one to create class="active" at <li> tag if the link is active site. This helper is included within this file.

Usage

In your view type

variable $menu initialize in your controller with array like this:

$menu = array('controller/method'=>'Item1','submenu'=>array('controller/method'=>'Sub-Item1'),'controller/method'=>'Item2');

This menu code will be like this: