Skip to content

Commit 7d03a92

Browse files
committed
[#1766] Tweaking docs about PHP template and @template annotation
1 parent b68f6d6 commit 7d03a92

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cookbook/templating/PHP.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,13 @@ below renders the ``index.html.php`` template::
5757
return $this->render('AcmeHelloBundle:Hello:index.html.php', array('name' => $name));
5858
}
5959

60-
Or, you can use the @Template() annotation to make it render the default "AcmeHelloBundle:Hello:index.html.php" template::
60+
You can also use the :doc:`/bundles/SensioFrameworkExtraBundle/annotations/view`
61+
shortcut to render the default ``AcmeHelloBundle:Hello:index.html.php`` template::
6162

6263
// src/Acme/HelloBundle/Controller/HelloController.php
6364

65+
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
66+
6467
// ...
6568

6669
/**

0 commit comments

Comments
 (0)