CodeIgniter Forums
A view to handle it's own purpose - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: A view to handle it's own purpose (/thread-2735.html)



A view to handle it's own purpose - El Forum - 08-21-2007

[eluser]LifeSteala[/eluser]
Hi, I am creating an application. This application has a menu which is dynamically generated from a database. I want this separate from the views which displays the rest of the page since it will be duplicate code for each view/page. How is this possible.

If this does not make sense, i'll try explaining again.

I have say 3 pages with the same menu that's dynamically generated from a database. The code to display the menu is written in 3 different views. I want it so it's on its own view.

If I was doing this in straight php, i'd have a menu.php and on all my pages I would include this file.

Any idea's?

Thanks


A view to handle it's own purpose - El Forum - 08-21-2007

[eluser]Michael Wales[/eluser]
See the exact same post and the search function.


A view to handle it's own purpose - El Forum - 08-21-2007

[eluser]LifeSteala[/eluser]
Sorry, I did do a search, spent about 30 minutes searching and couldn't find this. I do appreciate your reply. Thanks.