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.
17
17
Rendering PHP Templates
18
18
-----------------------
19
19
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:
22
27
23
28
.. configuration-block ::
24
29
Original file line number Diff line number Diff line change @@ -9,8 +9,14 @@ How to Dump Debug Information in Twig Templates
9
9
10
10
When using PHP templates, you can use the
11
11
: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::
14
20
15
21
// src/Controller/ArticleController.php
16
22
namespace App\Controller;
You can’t perform that action at this time.
0 commit comments