Skip to content

Commit 98badbb

Browse files
committed
add template debug info
1 parent 31cb844 commit 98badbb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ $twigConfig = [
5050

5151
$twigLoader = new FilesystemLoader('./tpl/');
5252
$twig = new Environment($twigLoader, $twigConfig);
53+
// if you need {{ dump() }} in the twig templates add
54+
//$twig->addExtension(new DebugExtension());
55+
// and use Twig\Extension\DebugExtension; // at the top of the file
5356

5457
// this is for the filter |trans
5558
$filter = new TwigFilter(

0 commit comments

Comments
 (0)