On 1/17/11 10:31 AM, 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?

Explicitness is always better (less WTF effects). Being implicit introduced some subtle and hard to find bugs.

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();

Just have a look at the symfony1 tickets to see some of the problems. What if I use the implicit default bundle name in a partial but the partial is included in another bundle. That does not work in symfony1 because we don't store the "context". It means that in this specific case, you must use the full partial notation. In Symfony2, we try to have one true way of doing things.

Fabien

--
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

--
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

Reply via email to