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 7cbad6d commit 3828162Copy full SHA for 3828162
cookbook/templating/PHP.rst
@@ -77,6 +77,24 @@ shortcut to render the default ``AcmeHelloBundle:Hello:index.html.php`` template
77
return array('name' => $name);
78
}
79
80
+.. caution::
81
+
82
+ Enabling the ``php`` and ``twig`` template engines simultaneously is
83
+ allowed but it will produce an important side effect in your application:
84
+ template namespaces will no longer work::
85
86
+ public function indexAction()
87
+ {
88
+ // ...
89
90
+ // namespaced templates will no longer work
91
+ $this->render('@Acme/Default/index.html.twig');
92
93
+ // traditional template notation will work
94
+ $this->render('AcmeBundle:Default:index.html.twig');
95
+ }
96
97
98
.. index::
99
single: Templating; Layout
100
single: Layout
0 commit comments