Does anyone one know where to enable Twig's dump function in ZF2?
I've looked all over Google and I can't find anything that really relates to this issue. I would have though the ZFC-Twig module would have it right in their config but it doesn't appear to be.
Thanks
According to Twig documentation, you need to activate Twig_Extension_Debug extension to have this function available.
In ZfcTwig module just add this extension to config (doc):
'zfctwig' => [
'extensions' => [
'Twig_Extension_Debug',
],
],
If you're using Zfc-Twig, you can enable debug feature by enabling it through environment_options like this:
<?php
// enable debug
return array(
'zfctwig' => array(
'environment_options' => array(
'debug' => true
)
)
);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With