diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-06-25 13:18:26 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-06-25 13:18:26 +0400 |
commit | 6ac63c26a4b1486aa364d4cc7ca3938b2f3e2f4f (patch) | |
tree | 46bb70205bd98c042e6082d221974348aa679adc /core/Twig.php | |
parent | 4d57c0281f752e16bb88bfeebba024d49006dcfd (diff) |
* Fixing SitesManager page
* Enabling debug on twig so we can use {{ dump(var) }} function
Refs #4019
Diffstat (limited to 'core/Twig.php')
-rw-r--r-- | core/Twig.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Twig.php b/core/Twig.php index a08a8a484a..0bf82d40f7 100644 --- a/core/Twig.php +++ b/core/Twig.php @@ -40,11 +40,12 @@ class Piwik_Twig // Create new Twig Environment and set cache dir $this->twig = new Twig_Environment($chainLoader, array( + 'debug' => true, // to use {{ dump(var) }} in twig templates //'cache' => PIWIK_DOCUMENT_ROOT . '/tmp/templates_c', ) ); + $this->twig->addExtension(new Twig_Extension_Debug()); $this->twig->clearTemplateCache(); - // Add default filters $this->addFilters(); // Register namespaces |