[symfony-users] [Symfony2] How to use a listener to change the layout a template will decorate
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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Bug in "doctrine:mapping:import" Symfony 2 CLI command?
Hello, I tried importing mapping information from a database containing 15 tables, all tables had primary keys except for one which was causing the following exception: -- [Doctrine\DBAL\Schema\SchemaException] Index '' does not exist on table 'setting'. -- The table 'setting' DID NOT have a primary key. Although it'd UNIQUE and other indexes. The import went fine when I converted the unique index to primary key. Is this a bug? I suppose it is (once confirmed I'll report it) because I'd no trouble in importing the database in symfony 1.4. -- 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en