Welcome Guest, Not a member yet? Register   Sign In
newbie MVC question - where should header footer code go?
#3

[eluser]Aken[/eluser]
You've got the right idea, but you're wording it in a way that makes you seem confused.

A view is what is going to be displayed - it has all your HTML and variables that will be parsed from the controller to be displayed, etc. A view will only show up if called from the controller.

I do headers/footers in the same way you've done in your example. In my controller, I pull any info I need for my header (titles, meta, etc), then load them into my header view. Then I do all my content, then load the footer view.


Messages In This Thread
newbie MVC question - where should header footer code go? - by El Forum - 06-08-2009, 06:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB