CodeIgniter Forums

Full Version: Horizontal navigation bar, how?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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

El Forum

[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_Controlle...ontroller/

[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;
$function = $this->router->method;

You should also search the forum for "breadcrumb".