Welcome Guest, Not a member yet? Register   Sign In
What do you guys do with pages that don't require a controller?
#4

[eluser]n0xie[/eluser]
[quote author="mason22" date="1260948599"]What do you guys do with pages that don't require a controller? [/quote]
I'm not sure what you mean by this. If you mean static pages that don't require any business logic, you could just use one generic 'static page' controller and return different static views from there, depending on some parameter or depending on the url structure.

Keep in mind that the controller does not equal 'the url'. You can map any controller to any url. You can map several url's to 1 controller. So you don't have to build a new controller for every page. Keep it DRY!


Messages In This Thread
What do you guys do with pages that don't require a controller? - by El Forum - 12-16-2009, 03:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB