![]() |
Horizontal navigation bar, how? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Horizontal navigation bar, how? (/showthread.php?tid=23814) |
Horizontal navigation bar, how? - El Forum - 10-22-2009 [eluser]gawronzo[/eluser] Hi, I found some issues about navigation at wiki and forum but I'm not satisfied. I would like to have a navigation strip on every page, something like this: Home > User > Registration I think that i don't need more elements (Home Page > Controller > Function). I think, that I need assign descriptions to controllers and functions. Do you know any elegant solution (for example plugin) having similar functionality? Thanks for any answers in advance! BTW: how to get controller name and his function name calling from controller's function body? Regards, Tom Horizontal navigation bar, how? - El Forum - 10-22-2009 [eluser]pistolPete[/eluser] [quote author="gawronzo" date="1256237049"]I think, that I need assign descriptions to controllers and functions. Do you know any elegant solution (for example plugin) having similar functionality?[/quote] I'd extend the Controller class: http://codeigniter.com/wiki/MY_Controller_-_how_to_extend_the_CI_Controller/ [quote author="gawronzo" date="1256237049"]how to get controller name and his function name calling from controller's function body?[/quote] Either use the URI or use the Router class: Code: $controller = $this->router->class; You should also search the forum for "breadcrumb". |