Simple Menu Generator - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Simple Menu Generator (/showthread.php?tid=40947) |
Simple Menu Generator - El Forum - 04-23-2011 [eluser]Unknown[/eluser] Hi Guys! My first library for CI. Please, comments and suggestions. Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); How to use: Code: $this->load->library('menu'); View Code: <nav><?php echo $menu; ?></nav> or Template Parser Code: <nav>{menu}</nav> Simple Menu Generator - El Forum - 04-27-2011 [eluser]Noobigniter[/eluser] Thanks Simple Menu Generator - El Forum - 11-03-2012 [eluser]Unknown[/eluser] Looks very good. The problem is, how to get the menu items into an array from, let's say... a database (easily)? Simple Menu Generator - El Forum - 11-03-2012 [eluser]Unknown[/eluser] Fatal error: Call to undefined function trim_slashes() in C:\xampp\htdocs\ci\application\libraries\menu.php on line 60 error how to use ? Simple Menu Generator - El Forum - 11-03-2012 [eluser]Noobigniter[/eluser] Did you load string helper ? Code: $this->load->helper('string'); http://ellislab.com/codeigniter/user-guide/helpers/string_helper.html |