Dynamic layouts in Twig
Recently I worked on a project that needed dynamic layouts for each bundle. The idea was to have a base template, then several layout templates that each extends from the base. Each view would then extend from one of the layout files. So this is how it worked. The base template looked like this: <!DOCTYPE … [Read more…]