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

[eluser]jedd[/eluser]
Hi Bill,

You are in a small clearing. There is a pile of leaves here.

Your view code - that produces HTML - should be in the views subdirectory.

It's up to you whether you generate view-snippets (feeding them back into variables in your controller code) and then dumping them out later in a main view, or if you generate the common bits (header, footer, etc) in your MY_Controller controller .. but you should generate all actual HTML within a view file, and all logic that wraps around that in your controller(s). Beyond that, I may have misunderstood the scope of your question.

It is likely that you need to read up more on MY_Controller, but that's just a gut feel from the tone of our question more than anything else.


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



Theme © iAndrew 2016 - Forum software by © MyBB