I’m using Symfony2 to build a website that’ll have two views, one for mobile devices and another for desktop depending on the user-agent.
I see that templates in Sf2 state what layout they extend or decorate unlike sf1.4. For my app. I don’t want this behavior of Sf2. There’ll be just two layouts and every template will decorate one of them. So, instead of every template duplicating the same code for selecting the template I want some listener to do this. So, I’d very thankful if anyone could give me the best practice to achieve this. I understand that Sf2 has been designed this way to be (I presume) more verbose and flexible in defining templates and layout. Thanks in advance. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
