We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b68f6d6 commit 7d03a92Copy full SHA for 7d03a92
cookbook/templating/PHP.rst
@@ -57,10 +57,13 @@ below renders the ``index.html.php`` template::
57
return $this->render('AcmeHelloBundle:Hello:index.html.php', array('name' => $name));
58
}
59
60
-Or, you can use the @Template() annotation to make it render the default "AcmeHelloBundle:Hello:index.html.php" template::
+You can also use the :doc:`/bundles/SensioFrameworkExtraBundle/annotations/view`
61
+shortcut to render the default ``AcmeHelloBundle:Hello:index.html.php`` template::
62
63
// src/Acme/HelloBundle/Controller/HelloController.php
64
65
+ use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
66
+
67
// ...
68
69
/**
0 commit comments