Skip to content

Commit 64c505f

Browse files
committed
[#8734][#8736] Adding missing installation details
1 parent d971f87 commit 64c505f

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

templating/PHP.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@ templates with PHP more powerful.
1717
Rendering 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

templating/debug.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@ How to Dump Debug Information in Twig Templates
99

1010
When 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;

0 commit comments

Comments
 (0)