Welcome Guest, Not a member yet? Register   Sign In
How to organize views?
#8

[eluser]mddd[/eluser]
@msteudel: The way you are describing it, you would need a separate view file for every method in every controller..
I think that is not really efficient. For instance: www.example.com/about/the_company could very well have the same layout as www.example.com/about/privacy.
And even www.example.com/dealers/map could have the same basis as www.example.com/offices/map.
I think you need to keep things flexible. If every method in every controller is going to have a certain view linked to it, you might as well load that view directly from the controller and not need the 'in between template' to figure out what view to load!


Messages In This Thread
How to organize views? - by El Forum - 05-14-2010, 02:10 AM
How to organize views? - by El Forum - 05-14-2010, 04:16 AM
How to organize views? - by El Forum - 05-14-2010, 04:40 AM
How to organize views? - by El Forum - 05-14-2010, 04:53 AM
How to organize views? - by El Forum - 05-14-2010, 05:02 AM
How to organize views? - by El Forum - 05-14-2010, 06:12 AM
How to organize views? - by El Forum - 05-14-2010, 07:56 AM
How to organize views? - by El Forum - 05-14-2010, 09:44 AM
How to organize views? - by El Forum - 08-10-2010, 01:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB