Is there Slim support for Twig dump( ) method…or do I have to build my own extension to support this default functionality in SlimFramework??
thanks,
-cj
Is there Slim support for Twig dump( ) method…or do I have to build my own extension to support this default functionality in SlimFramework??
thanks,
-cj
Gotta addExtension Twig_Extension_Debug in dependencies and then the dump functions will work.
$basePath = rtrim(str_ireplace(‘index.php’, ‘’, $c[‘request’]->getUri()->getBasePath()), ‘/’);
$view->addExtension(new Slim\Views\TwigExtension($c[‘router’], $basePath));
$view->addExtension(new Twig_Extension_Debug());