• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mlti level navigation

#1
[eluser]Paulo Carvalho [/eluser]
Hi community, I am building a cms with codeigniter.
I am struggling with multi level navigation.
I have a multi-level solution at the moment but its not coded properly and only goes up to 5 levels, plus its hardcoded in the view.
I would like to learn how to code this in the model.
I have table wit cID and parent.
The solution I have at the moment loops for each page and queries if $page->cID matches $page->parent if so return db oject and I loop it again and if found a child, well again.
How do i make this?
Many thanks for the replies.
Paulo

#2
[eluser]Otemu[/eluser]
Hi,

Check out the Nested Set Model good guide on it here


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.