Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

twig log variable

// if you can install Symfony modules then install "symfony/var-dumper" then
{{ dump(varname) }}

// if you can't install anything you can go generic with
{{ varname | json_encode(constant('JSON_PRETTY_PRINT')) }}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #twig #log #variable
ADD COMMENT
Topic
Name
8+7 =