File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,13 @@ templates with PHP more powerful.
1717Rendering PHP Templates
1818-----------------------
1919
20- If you want to use the PHP templating engine, first, make sure to enable it in
21- your application configuration file:
20+ If you want to use the PHP templating engine, first install the templating component:
21+
22+ .. code-block :: terminal
23+
24+ $ composer require templating
25+
26+ Next, enable the php engine:
2227
2328.. configuration-block ::
2429
Original file line number Diff line number Diff line change @@ -9,8 +9,14 @@ How to Dump Debug Information in Twig Templates
99
1010When using PHP templates, you can use the
1111:ref: `dump() function from the VarDumper component <components-var-dumper-dump >`
12- if you need to quickly find the value of a variable passed. This is useful,
13- for example, inside your controller::
12+ if you need to quickly find the value of a variable passed. First, make sure it
13+ is installed:
14+
15+ .. code-block :: terminal
16+
17+ $ composer require var-dumper
18+
19+ This is useful, for example, inside your controller::
1420
1521 // src/Controller/ArticleController.php
1622 namespace App\Controller;
You can’t perform that action at this time.
0 commit comments