Welcome Guest, Not a member yet? Register   Sign In
A view to handle it's own purpose
#1

[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


Messages In This Thread
A view to handle it's own purpose - by El Forum - 08-21-2007, 08:02 PM
A view to handle it's own purpose - by El Forum - 08-21-2007, 08:15 PM
A view to handle it's own purpose - by El Forum - 08-21-2007, 08:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB