/var/www/joomla/www/application/models/TemplateConfiguration.php(60)
48 * If it's a user template, it will check if it's an old 2.0x template to provide default configuration values corresponding to the old template system 49 * If it's not an old template, it will check if it has a configuration file to load its datas. 50 * If it's not the case (template probably doesn't exist), it will load the default template configuration 51 * TODO : more tests should be done, with a call to private function _is_valid_template(), testing not only if it has a config.xml, but also id this file is correct, if it has the needed pstpl files, if the files refered in css exist, etc. 52 * 53 * @param string $sTemplateName the name of the template to load. The string come from the template selector in survey settings 54 * @param integer $iSurveyId the id of the survey. If 55 */ 56 public function setTemplateConfiguration($sTemplateName='', $iSurveyId='') 57 { 58 if ($sTemplateName == '' && $iSurveyId == '') 59 { 60 throw new Exception("Template needs either template name or survey id"); 61 } 62 63 $this->sTemplateName = $sTemplateName; 64 $this->iSurveyId = $iSurveyId; 65 66 if ($sTemplateName=='') 67 { 68 $this->oSurvey = Survey::model()->findByPk($iSurveyId); 69 $this->sTemplateName = $this->oSurvey->template; 70 } 71 72 $this->isStandard = $this->setIsStandard();
#0 |
+
–
/var/www/joomla/www/application/controllers/SurveysController.php(30): TemplateConfiguration->setTemplateConfiguration("", null) 25 // using a "getInstance" method without parsing the template model from the controllers 26 // to the helpers/libraries/view will not resolve magically the problem. It will just create 27 // second instance. 28 global $oTemplate; 29 $oTemplate = new TemplateConfiguration; 30 $oTemplate->setTemplateConfiguration('',$surveyid); 31 32 if($oTemplate->cssFramework == 'bootstrap') 33 { 34 App()->bootstrap->register(); 35 } |
#1 |
unknown(0): SurveysController->actionPublicList(null)
|
#2 |
+
–
/var/www/joomla/www/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(SurveysController, array(null)) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#3 |
+
–
/var/www/joomla/www/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(SurveysController, ReflectionMethod, array()) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#4 |
+
–
/var/www/joomla/www/framework/web/CController.php(308): CInlineAction->runWithParams(array()) 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; |
#5 |
+
–
/var/www/joomla/www/framework/web/CController.php(286): CController->runAction(CInlineAction) 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(); |
#6 |
+
–
/var/www/joomla/www/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, 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); |
#7 |
+
–
/var/www/joomla/www/framework/web/CWebApplication.php(282): CController->run("") 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))); |
#8 |
+
–
/var/www/joomla/www/framework/web/CWebApplication.php(141): CWebApplication->runController("") 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. |
#9 |
+
–
/var/www/joomla/www/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 /** |
#10 |
+
–
/var/www/joomla/www/index.php(211): CApplication->run() 206 die (sprintf('%s should be writable by the webserver (766 or 776).', $runtimePath)); 207 } 208 } 209 210 Yii::$enableIncludePath = false; 211 Yii::createApplication('LSYii_Application', $config)->run(); 212 213 /* End of file index.php */ 214 /* Location: ./index.php */ |