Skip to content

Commit

Permalink
Dev: use news LSYii_ClientScript::registerPackage()
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed May 23, 2017
1 parent 5eb4f2c commit 64c4dd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/core/LSETwigViewRenderer.php
Expand Up @@ -174,6 +174,7 @@ public function renderTemplateFromString( $line, $aDatas, $bReturn)
$loader = $this->_twig->getLoader();
$oRTemplate = Template::model()->getInstance();
$loader->addPath($oRTemplate->viewPath);
Yii::app()->clientScript->registerPackage( $oRTemplate->sPackageName );

// Add all mother templates path
while($oRTemplate->oMotherTemplate instanceof TemplateConfiguration){
Expand Down

0 comments on commit 64c4dd5

Please sign in to comment.