Welcome Guest, Not a member yet? Register   Sign In
Menus across multiple views
#1

[eluser]kevinprince[/eluser]
Hi,
Im building a database based application where pretty much everything being shown in dynamically created.

I have a set of menus which are pulled from the database (lists of kinds of content etc).

Is there a way of making it so these menus can be put in the own class as I dont want to be writing the query in every class i need the menu to appear in.
#2

[eluser]xwero[/eluser]
You could make a library where you call your model and build your menus or you could use a templating library where you define your menus as page partials.




Theme © iAndrew 2016 - Forum software by © MyBB