/var/www/lime25/limesurvey/application/core/LSETwigViewRenderer.php(159)
147 } 148 } 149 150 // We check if the file is a twig file or a php file 151 // This allow us to twig the view one by one, from PHP to twig. 152 // The check will be removed when 100% of the views will have been twig 153 if (file_exists($requiredView.'.twig')) { 154 // We're not using the Yii Theming system, so we don't use parent::renderFile 155 // current controller properties will be accessible as {{ this.property }} 156 157 // aData and surveyInfo variables are accessible from question type twig files 158 $aData['aData'] = $aData; 159 $sBaseLanguage = Survey::model()->findByPk($_SESSION['LEMsid'])->language; 160 $aData['surveyInfo'] = getSurveyInfo($_SESSION['LEMsid'], $sBaseLanguage); 161 $aData['this'] = Yii::app()->getController(); 162 163 // check if this method is called from theme editor 164 if (empty($aData['bIsThemeEditor'])){ 165 $aData['question_template_attribute'] = $oQuestionTemplate->getCustomAttributes(); 166 } else { 167 $aData['question_template_attribute'] = null; 168 } 169 $template = $this->_twig->loadTemplate($sView.'.twig')->render($aData); 170 return $template; 171 } else {
#0 |
+
–
/var/www/lime25/limesurvey/application/views/admin/themes/templateeditor_question_answerlist_view.php(5): LSETwigViewRenderer->renderQuestion("/survey/questions/answer/listradio/columns/column_header", array("bIsThemeEditor" => true, "iColumnWidth" => 12, "aData" => array("bIsThemeEditor" => true, "iColumnWidth" => 12))) 01 <?php 02 /* Set some part */ 03 $sRows=""; 04 $sRows .= App()->twigRenderer->renderQuestion('/survey/questions/answer/listradio/columns/column_header', array( 05 'bIsThemeEditor' => true, 06 'iColumnWidth' => 12)); 07 $sRows .= App()->twigRenderer->renderQuestion('/survey/questions/answer/listradio/rows/answer_row', array( 08 'bIsThemeEditor' => true, 09 'sDisplayStyle' => '', 10 'name' => '1234X56X79', |
#1 |
+
–
/var/www/lime25/limesurvey/framework/web/CBaseController.php(126): require("/var/www/lime25/limesurvey/application/views/admin/themes/templa...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#2 |
+
–
/var/www/lime25/limesurvey/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/lime25/limesurvey/application/views/admin/themes/templa...", null, true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#3 |
+
–
/var/www/lime25/limesurvey/framework/web/CController.php(872): CBaseController->renderFile("/var/www/lime25/limesurvey/application/views/admin/themes/templa...", null, true) 867 */ 868 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 869 { 870 if(($viewFile=$this->getViewFile($view))!==false) 871 { 872 $output=$this->renderFile($viewFile,$data,true); 873 if($processOutput) 874 $output=$this->processOutput($output); 875 if($return) 876 return $output; 877 else |
#4 |
+
–
/var/www/lime25/limesurvey/application/views/admin/themes/templateeditor_question_answer_view.php(6): CController->renderPartial("/admin/themes/templateeditor_question_answerlist_view") 1 <!-- templateeditor_question_answer_view --> 2 <?php 3 if (isset($alt)){ 4 App()->getController()->renderPartial('/admin/themes/templateeditor_question_answertext_view'); 5 }else{ 6 App()->getController()->renderPartial('/admin/themes/templateeditor_question_answerlist_view'); 7 } 8 ?> 9 <!-- endof templateeditor_question_answer_view --> |
#5 |
+
–
/var/www/lime25/limesurvey/framework/web/CBaseController.php(126): require("/var/www/lime25/limesurvey/application/views/admin/themes/templa...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#6 |
+
–
/var/www/lime25/limesurvey/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/lime25/limesurvey/application/views/admin/themes/templa...", array(), true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#7 |
+
–
/var/www/lime25/limesurvey/framework/web/CController.php(872): CBaseController->renderFile("/var/www/lime25/limesurvey/application/views/admin/themes/templa...", array(), true) 867 */ 868 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 869 { 870 if(($viewFile=$this->getViewFile($view))!==false) 871 { 872 $output=$this->renderFile($viewFile,$data,true); 873 if($processOutput) 874 $output=$this->processOutput($output); 875 if($return) 876 return $output; 877 else |
#8 |
+
–
/var/www/lime25/limesurvey/application/controllers/admin/themes.php(994): CController->renderPartial("/admin/themes/templateeditor_question_answer_view", array(), true) 989 'coreClass'=>"em-tip ", // Unsure for this one 990 'vtip'=>gT('Hint when response is valid') 991 ), true), 992 ); 993 994 $aReplacements['ANSWER'] = $this->getController()->renderPartial('/admin/themes/templateeditor_question_answer_view', array(), true); 995 $aData['aReplacements'] = array_merge($aGlobalReplacements, $aReplacements); 996 997 // Group Datas 998 $thissurvey['aGroups'][1]["name"] = $groupname; 999 $thissurvey['aGroups'][1]["showdescription"] = true; |
#9 |
+
–
/var/www/lime25/limesurvey/application/controllers/admin/themes.php(426): themes->_initialise("extends_fruity2", "question", "layout_global.twig", true, ...) 421 /* Keep Bootstrap Package clean after loading template : because template can update boostrap */ 422 $aBootstrapPackage = Yii::app()->clientScript->packages['bootstrap-admin']; 423 424 425 426 $aViewUrls = $this->_initialise($templatename, $screenname, $editfile, true, true); 427 428 App()->getClientScript()->reset(); 429 Yii::app()->clientScript->packages['bootstrap'] = $aBootstrapPackage; 430 App()->getClientScript()->registerScriptFile(App()->getConfig('adminscripts').'templates.js'); 431 App()->getClientScript()->registerPackage('ace'); |
#10 |
unknown(0): themes->index("layout_global.twig", "question", "extends_fruity2")
|
#11 |
+
–
/var/www/lime25/limesurvey/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(themes, array("layout_global.twig", "question", "extends_fruity2")) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#12 |
+
–
/var/www/lime25/limesurvey/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(themes, ReflectionMethod, array("sa" => "view", "editfile" => "layout_global.twig", "templatename" => "extends_fruity2", "screenname" => "question")) 78 $oMethod = new ReflectionMethod($this, $sDefault); 79 } 80 81 // We're all good to go, let's execute it 82 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 83 return parent::runWithParamsInternal($this, $oMethod, $params); 84 } 85 86 /** 87 * Some functions have different parameters, which are just an alias of the 88 * usual parameters we're getting in the url. This function just populates |
#13 |
+
–
/var/www/lime25/limesurvey/application/controllers/admin/themes.php(31): Survey_Common_Action->runWithParams(array("sa" => "view", "editfile" => "layout_global.twig", "templatename" => "extends_fruity2", "screenname" => "question")) 26 { 27 28 public function runWithParams($params) 29 { 30 if (Permission::model()->hasGlobalPermission('templates', 'read')) { 31 parent::runWithParams($params); 32 } else { 33 Yii::app()->setFlashMessage(gT("We are sorry but you don't have permissions to do this."), 'error'); 34 $this->getController()->redirect(array("admin/themeoptions")); 35 } 36 } |
#14 |
+
–
/var/www/lime25/limesurvey/framework/web/CController.php(308): themes->runWithParams(array("sa" => "view", "editfile" => "layout_global.twig", "templatename" => "extends_fruity2", "screenname" => "question")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#15 |
+
–
/var/www/lime25/limesurvey/framework/web/CController.php(286): CController->runAction(themes) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#16 |
+
–
/var/www/lime25/limesurvey/framework/web/CController.php(265): CController->runActionWithFilters(themes, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#17 |
+
–
/var/www/lime25/limesurvey/application/controllers/AdminController.php(158): CController->run("themes") 153 $this->redirect(array('/admin/authentication/sa/login')); 154 } 155 } 156 } 157 158 return parent::run($action); 159 } 160 161 /** 162 * Routes all the actions to their respective places 163 * |
#18 |
+
–
/var/www/lime25/limesurvey/framework/web/CWebApplication.php(282): AdminController->run("themes") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#19 |
+
–
/var/www/lime25/limesurvey/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/themes") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#20 |
+
–
/var/www/lime25/limesurvey/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#21 |
+
–
/var/www/lime25/limesurvey/index.php(194): CApplication->run() 189 require_once APPPATH . 'core/LSYii_Application' . EXT; 190 191 $config = require_once(APPPATH . 'config/internal' . EXT); 192 193 Yii::$enableIncludePath = false; 194 Yii::createApplication('LSYii_Application', $config)->run(); 195 196 /* End of file index.php */ 197 /* Location: ./index.php */ |