Skip to content

Commit

Permalink
Dev: added new functions to twig for language changer
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jan 6, 2017
1 parent 4d3b56c commit 5b304b3
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions application/config/internal.php
Expand Up @@ -206,7 +206,10 @@
'html' => 'CHtml'
),
'functions' => array(
'flatEllipsizeText' => 'viewHelper::flatEllipsizeText',
'flatEllipsizeText' => 'viewHelper::flatEllipsizeText',
'getLanguageData' => 'viewHelper::getLanguageData',
'array_flip' => 'array_flip',
'array_intersect_key' => 'array_intersect_key',
),
'filters' => array(
'jencode' => 'CJSON::encode',
Expand All @@ -216,13 +219,15 @@
'tags' => array('if', 'for', 'set'),
'filters' => array('escape', 'raw', 't', 'merge', 'length'),
'methods' => array(
'ETwigViewRendererStaticClassProxy'=>array("textfield", "form", "link", "emailField", "beginForm", "endForm", ),
'Survey'=>array("getAllLanguages"),
'ETwigViewRendererStaticClassProxy' => array("textfield", "form", "link", "emailField", "beginForm", "endForm", ),
'Survey' => array("getAllLanguages"),
'LSHttpRequest' => array("getParam"),
),
'properties' => array(
'ETwigViewRendererYiiCoreStaticClassesProxy'=>array("Html"),
'LSYii_Application' => array("request"),
),
'functions' => array('include', 'dump', 'flatEllipsizeText')
'functions' => array('include', 'dump', 'flatEllipsizeText', 'getLanguageData', 'array_flip', 'array_intersect_key')
)

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

0 comments on commit 5b304b3

Please sign in to comment.