Welcome Guest, Not a member yet? Register   Sign In
Local navigation menu; conceptually how does it fit into MVC pattern
#1

[eluser]Daniel H[/eluser]
I'm planning a new site which will feature a context-aware local navigation menu with links drawn from a db depending on the current controller/function combination etc. (though in addition there'll be some links that are returned from the db regardless of context). However I'm struggling to understand how it would fit into the mvc pattern effectively.

If I were to do it now I'd load up all the models and generate queries to send to the local navigation view, but I'd much rather it be self-contained... almost like including the output from a standalone controller rather than just a view.

I'm possibly not being clear here, but if anyone can shed some light on how they structure their global/local navigations that'd be great.

Thanks,

Dan.




Theme © iAndrew 2016 - Forum software by © MyBB