Skip to content

Commit

Permalink
Dev: render save page
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jun 2, 2017
1 parent 88cd984 commit 12a8479
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/controllers/admin/templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -1238,6 +1238,7 @@ protected function _initialise($templatename, $screenname, $editfile, $showsumma
break;

case 'save':
/*
$files=$Save;
$aData['aReplacements'] = $aGlobalReplacements;
$myoutput[] = templatereplace(file_get_contents("$templatedir/startpage.pstpl"), array(), $aData, 'Unspecified', false, NULL, array(), false, $oEditedTemplate);
Expand All @@ -1252,6 +1253,8 @@ protected function _initialise($templatename, $screenname, $editfile, $showsumma
$myoutput = array_merge($myoutput, doreplacement($oEditedTemplate->viewPath . "/save.pstpl", $aData, $oEditedTemplate));
$myoutput[] = templatereplace(file_get_contents("$templatedir/endpage.pstpl"), array(), $aData, 'Unspecified', false, NULL, array(), false, $oEditedTemplate);
$myoutput[] = "\n";
*/
$myoutput = Yii::app()->twigRenderer->renderTemplateFromFile("layout_save.twig", array('aSurveyInfo'=>$thissurvey), true);
break;

case 'load':
Expand Down

0 comments on commit 12a8479

Please sign in to comment.