CodeIgniter Forums
Get recursive menu from database - 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: Get recursive menu from database (/thread-17986.html)

Pages: 1 2


Get recursive menu from database - El Forum - 04-26-2009

[eluser]JoostV[/eluser]
I've seen a model called MPTtree discussed which I handels nested sets. Never looked into as of yet, alas.

http://ellislab.com/forums/viewthread/74114/


Get recursive menu from database - El Forum - 10-25-2010

[eluser]Unknown[/eluser]
Quote:Although the code below isn’t what you asked for, its some old code I had which done a nested drop down list of categories, so same concept.
Its essentially a recursive call starting with the top level categories, then searching for categories which have that as its parent etc

If you can’t make sense of it, I’ll adopt it to your situation in the morning, but I’m going bed now

Thanks Dam1an, Really was very useful.

~metoome