CodeIgniter Forums
Dynamic Navigation menu - 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: Dynamic Navigation menu (/thread-53640.html)



Dynamic Navigation menu - El Forum - 08-01-2012

[eluser]shyam1326[/eluser]
I am trying to create a navigation menu using the parent and child id in the database, I have no idea how about to start it, could anyone give me an insight please

Thank You

Shyam


Dynamic Navigation menu - El Forum - 08-01-2012

[eluser]PhilTem[/eluser]
What you're looking for is adjacency lists

Google it and you may find some link like this
http://stackoverflow.com/questions/4242276/recursive-php-function-for-adjacency-list-display


Dynamic Navigation menu - El Forum - 08-01-2012

[eluser]InsiteFX[/eluser]
Here is another one.

Building a dynamic drop down menu



Dynamic Navigation menu - El Forum - 08-02-2012

[eluser]shyam1326[/eluser]
Thank you for the link, Really helped me out alot.


Dynamic Navigation menu - El Forum - 08-02-2012

[eluser]shyam1326[/eluser]
Would the link above work for codeigniter version 2.0? Don't I need to use controllers and models?


Dynamic Navigation menu - El Forum - 08-02-2012

[eluser]InsiteFX[/eluser]
The correct way would be to put it into a library.

If you search the forums I already gave some example code for this.