This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Bundle/FrameworkBundle/Controller
Fabien Potencier a6dc10c31a changed templating name notation
Old notation: bundle:section:name.format:renderer (where both format and renderer are optional)
New notation: bundle:section:name.format.renderer (where only format is optional)

Valid new template names: Blog:Post:index.php, Blog:Post:index.xml.php

The new notation is more explicit and put all templating engines on the same level (there is no
more the concept of a "default" templating engine).

Even if the notation changed, the semantic has not. So, the logical template name for the above
examples is still 'index'. So, if you use a database loader for instance, the template
name is 'index' and everything else are options.

Upgrading current applications can be easily done by appending .php to each existing template
name reference (in both controllers and templates), and changing :twig to .twig for Twig templates
(for twig templates, you should also add .twig within templates themselves when referencing
another Twig templates).
2010-09-28 08:33:33 +02:00
..
Controller.php added ContainerAwareInterface 2010-08-28 09:43:10 +02:00
ControllerNameConverter.php removed Symfony\Framework 2010-09-17 12:58:24 +02:00
ControllerResolver.php [FrameworkBundle] added support for services as controllers 2010-09-23 08:41:24 +02:00
DefaultController.php changed templating name notation 2010-09-28 08:33:33 +02:00
ExceptionController.php changed templating name notation 2010-09-28 08:33:33 +02:00
InternalController.php [FrameworkBundle] removed usage of Controller class for internal controllers 2010-08-30 07:26:19 +02:00
RedirectController.php [FrameworkBundle] removed usage of Controller class for internal controllers 2010-08-30 07:26:19 +02:00
TemplateController.php [FrameworkBundle] removed usage of Controller class for internal controllers 2010-08-30 07:26:19 +02:00