remvst
Member since Jul 12, 2012
- Profile: /members/10118-remvst.htm
- URL: http://ww.remvst.com
- Comments: 3
Recent Blog Comments By remvst
-
How Do You Populate Shared Views In A Complex Layout Using MVC?
Posted on Jul 12, 2012 at 11:23 AM
Adrian Moreno seems to have the same method as me.... read more »
-
How Do You Populate Shared Views In A Complex Layout Using MVC?
Posted on Jul 12, 2012 at 11:17 AM
@ben This "render" function only calls a controller method and renders the returned result. So no, it doesn't always entirely render the layout, but sometimes only a small part of it (for example, a dynamic list). I don't really see a problem with that, and I can't see a more better soluti... read more »
-
How Do You Populate Shared Views In A Complex Layout Using MVC?
Posted on Jul 12, 2012 at 10:42 AM
Dunno if that actually helps you, but Symfony2 adds the "render" function to the Twig template renderer. "Render" refers to an action from a controller, which itself can render another template. So the MVC pattern is still applied and you have quality code. Maybe you should have ... read more »