On 17.01.2011, at 10:31, John - White October wrote: > I'm trying to get my head around these template names. > bundle:section:template.format.renderer > > What is the reason behind the verboseness of the string? Isn't the first two > sections "bundle:section" implicit?
You can reference templates in other bundles. For example you might have a Bundle with your layout or login form templates that you reference in your other Bundles. You can add a helper method that makes these optional: function render($name, $params, $controller null, $bundle = null) > Also out of interest why the move away from guessing the template name from > the action name and then having the ability to override the template with > $this->setTemplate(); Symfony2 defaults to no magic. You can easily add helpers into your controllers that do this work for you. regards, Lukas Kahwe Smith [email protected] -- 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 developers" 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-devs?hl=en
