![]() |
How to highlight current page in menu item? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How to highlight current page in menu item? (/showthread.php?tid=47584) |
How to highlight current page in menu item? - El Forum - 12-14-2011 [eluser]qpixo[/eluser] I have a menu which has generated dynamically from database. Now I want to highlight current page in menu item but when I do that all my current menu items dissappear suddently. Don't understand why? Noticed when using $this->uri->segment(1) caused my menu dissappear. Does anyone know how to make it works? In my View file: Code: <div id="menu"> In my Helper file: Code: function buildListItem($item) { How to highlight current page in menu item? - El Forum - 02-27-2012 [eluser]handoyo[/eluser] Hi qpixo,what is the solution?Thanks |