Skip to content

Commit

Permalink
Dev: added debug mode for twig
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jan 5, 2017
1 parent fcf3bc3 commit cf2e2df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions application/config/internal.php
Expand Up @@ -194,11 +194,13 @@
'fileExtension' => '.twig',
'options' => array(
'autoescape' => true,
'debug' => defined('YII_DEBUG') && YII_DEBUG ?true:false,
),
// Those extensions, include the sendbox, will be done later in the process
'extensions' => array(
'Twig_Extension_Sandbox',
'Twig_Extension_StringLoader',
'Twig_Extension_Debug',
),
'globals' => array(
'html' => 'CHtml'
Expand All @@ -213,12 +215,12 @@
'tags' => array('if', 'for'),
'filters' => array('escape', 'raw'),
'methods' => array(
'ETwigViewRendererStaticClassProxy'=>array("textfield", "form")
'ETwigViewRendererStaticClassProxy'=>array("textfield", "form", "link", "emailField", "beginForm", "endForm", )
),
'properties' => array(
'ETwigViewRendererYiiCoreStaticClassesProxy'=>array("Html")
),
'functions' => array()
'functions' => array('dump')
)

// Change template syntax to Smarty-like (not recommended)
Expand Down

0 comments on commit cf2e2df

Please sign in to comment.