Skip to content

Commit

Permalink
Dev: error page, retreive list of files to edit from template manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jun 13, 2017
1 parent 0defdcf commit 840d6f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/controllers/admin/templates.php
Expand Up @@ -1459,6 +1459,10 @@ protected function _initialise($templatename, $screenname, $editfile, $showsumma
case 'error':
$thissurvey['aError']['title'] = gT("Error");
$thissurvey['aError']['message'] = gT("This is an error message example");

$aSurveyListConfig = (array) $oEditedTemplate->templateEditor->screens->error;
$files = $aSurveyListConfig['file'];

$myoutput = Yii::app()->twigRenderer->renderTemplateFromFile("layout_errors.twig", array('aSurveyInfo'=>$thissurvey), true);
break;
}
Expand Down

0 comments on commit 840d6f7

Please sign in to comment.