Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <terryapodaca> so in general, site specific can use Requirements:: and that's perfectly fine.
- <FrozenFire> In my opinion, no.
- <FrozenFire> Your presentation should be completely decoupled from your controller.
- <FrozenFire> When you want to change the design of your site, you're going to have to rewrite half of your code.
- <FrozenFire> These guys are suggesting making the theme completely dependent upon the project code.
- <FrozenFire> So whenever you want to add some styles to a template, you have to modify the project code.
- <FrozenFire> That's utterly ridiculous, and would be laughed at by just about every experienced developer not in the SS community.
- <FrozenFire> Your controller should make zero considerations about the type of content it's outputting.
- <FrozenFire> It should render the type of view, and return that
- <FrozenFire> The view should define its presentational dependencies
- <FrozenFire> Requirements is part of the view - it's a presentational helper.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement