/var/www/protected/modules/picture/controllers/DefaultController.php(7)
01 <?php 02 class DefaultController extends UController 03 { 04 function init() 05 { 06 parent::init(); 07 if($_GET['language']){$language = $_GET['language'];} 08 else if(wm()->get('base.helper')->getFromCookie('language')){$language = wm()->get('base.helper')->getFromCookie('language');} 09 else{$language="en";} 10 wm()->get('base.helper')->saveToCookie('language',$language); 11 Yii::app()->language = $language; 12 } 13 }
#0 |
+
–
/var/www/framework/yii/framework/web/CWebApplication.php(276): DefaultController->init() 271 if(($ca=$this->createController($route))!==null) 272 { 273 list($controller,$actionID)=$ca; 274 $oldController=$this->_controller; 275 $this->_controller=$controller; 276 $controller->init(); 277 $controller->run($actionID); 278 $this->_controller=$oldController; 279 } 280 else 281 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', |
#1 |
+
–
/var/www/framework/yii/framework/web/CWebApplication.php(136): CWebApplication->runController("picture/view") 131 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 132 $_GET[$name]=$value; 133 } 134 else 135 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 136 $this->runController($route); 137 } 138 139 /** 140 * Registers the core application components. 141 * This method overrides the parent implementation by registering additional core components. |
#2 |
+
–
/var/www/framework/yii/framework/base/CApplication.php(158): CWebApplication->processRequest() 153 */ 154 public function run() 155 { 156 if($this->hasEventHandler('onBeginRequest')) 157 $this->onBeginRequest(new CEvent($this)); 158 $this->processRequest(); 159 if($this->hasEventHandler('onEndRequest')) 160 $this->onEndRequest(new CEvent($this)); 161 } 162 163 /** |
#3 |
+
–
/var/www/index.php(15): CApplication->run() 10 // ini_set('display_errors', 'Off'); 11 12 require_once($yii); 13 require_once(dirname(__FILE__).'/protected/components/UApp.php'); 14 15 Yii::createApplication('UApp',$config)->run(); |