Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-06-25 13:18:26 +0400
committermattab <matthieu.aubry@gmail.com>2013-06-25 13:18:26 +0400
commit6ac63c26a4b1486aa364d4cc7ca3938b2f3e2f4f (patch)
tree46bb70205bd98c042e6082d221974348aa679adc /core/Twig.php
parent4d57c0281f752e16bb88bfeebba024d49006dcfd (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.php3
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