CodeIgniter Forums
building an efficient navigation bar - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: building an efficient navigation bar (/thread-6480.html)



building an efficient navigation bar - El Forum - 02-29-2008

[eluser]A.M.F[/eluser]
hello

i am working on a navigation bar for my site and i want to share u with my ideas and here ur hints.

i have many pages that are inside other page, so i want to make it recursive. therefore, in each controller that shows a page, i have an array with the "father" pages, and i want to print it with a foreach loop.

the structure of my pages looks something like this:
main page -> category page (games, movies, etc.) -> page -> page -> page....

how r u doing ur navigation bar?


building an efficient navigation bar - El Forum - 02-29-2008

[eluser]Noah David[/eluser]
Look into the YUI Menu Library: http://developer.yahoo.com/yui/menu/