![]() |
Dynamic Menu - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Dynamic Menu (/showthread.php?tid=59096) |
Dynamic Menu - El Forum - 08-23-2013 [eluser]morfasto[/eluser] Hello All, I wanted to know where do I have to set a variable with the menu information got from the database so that I dont have to declare it on every method on every controller to send it to the view. I want to make a dynamic menu. Any recomendations? Thanks in advance! Dynamic Menu - El Forum - 08-23-2013 [eluser]PravinS[/eluser] you can define menu variable in config.php file and to load dynamic menu you can create one template in view and can include header, menu, footer etc. Dynamic Menu - El Forum - 08-23-2013 [eluser]morfasto[/eluser] Is it possible to call a method of a model from config.php? Dynamic Menu - El Forum - 08-23-2013 [eluser]PravinS[/eluser] no you cannot, what kind of variable you want to set? Dynamic Menu - El Forum - 08-24-2013 [eluser]morfasto[/eluser] An array with information from the DB |