Welcome Guest, Not a member yet? Register   Sign In
Horizontal navigation bar, how?
#1

[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
#2

[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".




Theme © iAndrew 2016 - Forum software by © MyBB