![]() |
Menus across multiple views - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Menus across multiple views (/showthread.php?tid=3802) |
Menus across multiple views - El Forum - 10-22-2007 [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. Menus across multiple views - El Forum - 10-22-2007 [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. |