Welcome Guest, Not a member yet? Register   Sign In
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




Theme © iAndrew 2016 - Forum software by © MyBB