navigation / menu - 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: navigation / menu (/showthread.php?tid=29729) |
navigation / menu - El Forum - 04-19-2010 [eluser]Schumacher[/eluser] ive asked once before but no one replied, and it might be because i asked in a wrong why. so, my issue is that i want to structure my menu in a specefic way. I would like to be able to make a ‘active’ class on the current page im on, so that it has a special class on it, but how do i get to know that this certain pageg is active? Before CI i just did the basename() and if that was it, it had a class on it. But how do i do it with CI , in a smart way. also if i would like to have more levels in my menu, so if im under lets say profile: then it shows Profile -edit text -change password and if im clicking on another page it goes for that page. Anyone konw anything about that? Plz let me know. Or how have you done it ? navigation / menu - El Forum - 04-19-2010 [eluser]slowgary[/eluser] This would largely depend on how your application is structured. You could set a variable in your controller methods and use it in your view. You can also check various $_SERVER variables from within the code that generates your navigation. |