diff --git a/index.php b/index.php index e72e52a..e979ff0 100755 --- a/index.php +++ b/index.php @@ -23,6 +23,8 @@ $db = new mysqli($settings->database->host, $settings->database->username, $sett $twig_loader = new Twig_Loader_Filesystem($base_dir.'/views'); $twig = new Twig_Environment($twig_loader, array('debug' => true)); +//Need this to use dump() for debugging. +$twig->addExtension(new Twig_Extension_Debug()); $variables = array( 'baseURL' => $settings->baseURL diff --git a/views/results.html.twig b/views/results.html.twig index d813893..4845192 100644 --- a/views/results.html.twig +++ b/views/results.html.twig @@ -26,15 +26,18 @@ {% for record in stats %}
{{ dump(stats) }}+
{{ dump(data) }}+ +