D:\php\nginx-1.2.4\yii\vgt\protected\components\Controller.php(65)
53 if(isset($_COOKIE["lang"])&&$_COOKIE["lang"]!=""){ 54 Yii::app()->language=$_COOKIE["lang"]; 55 }else{ 56 $lang=explode(',',$_SERVER['HTTP_ACCEPT_LANGUAGE']); 57 Yii::app()->language=strtolower(str_replace('-','_',$lang[0])); 58 setcookie("lang",Yii::app()->language, time()+60*60*24*30,'/'); 59 } 60 } 61 } 62 else if(isset($_COOKIE["lang"])&&$_COOKIE["lang"]!=""){ 63 Yii::app()->language=$_COOKIE["lang"]; 64 }else{ 65 $lang=explode(',',$_SERVER['HTTP_ACCEPT_LANGUAGE']); 66 Yii::app()->language=strtolower(str_replace('-','_',$lang[0])); 67 setcookie("lang",Yii::app()->language, time()+60*60*24*30,'/'); 68 } 69 70 // 日期格式 71 if(isset(Yii::app()->session['username']) && Yii::app()->session['username'] != "") 72 { 73 $stmt = "SELECT time_fomart from tbl_user where username = '".Yii::app()->session['username']."' and company_id = (select id from tbl_company where name = '".Yii::app()->session['companyname']."')"; 74 $rawData=Yii::app()->dbPostgre->createCommand($stmt)->queryAll(); 75 $format = null; 76 foreach ($rawData as $row) 77 {
#0 |
+
–
D:\php\nginx-1.2.4\yii\framework\web\CWebApplication.php(282): Controller->init() 277 if(($ca=$this->createController($route))!==null) 278 { 279 list($controller,$actionID)=$ca; 280 $oldController=$this->_controller; 281 $this->_controller=$controller; 282 $controller->init(); 283 $controller->run($actionID); 284 $this->_controller=$oldController; 285 } 286 else 287 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', |
#1 |
+
–
D:\php\nginx-1.2.4\yii\framework\web\CWebApplication.php(142): CWebApplication->runController("site/Contact") 137 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 138 $_GET[$name]=$value; 139 } 140 else 141 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 142 $this->runController($route); 143 } 144 145 /** 146 * Registers the core application components. 147 * This method overrides the parent implementation by registering additional core components. |
#2 |
+
–
D:\php\nginx-1.2.4\yii\framework\base\CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
#3 |
+
–
D:\php\nginx-1.2.4\yii\vgt\index.php(127): CApplication->run() 122 // echo "You are not authorized to perform this action"; 123 // echo "the system is upgrading, please wait..."; 124 // } 125 // else 126 // { 127 Yii::createWebApplication($config)->run(); 128 // } 129 } 130 else 131 { 132 Yii::createWebApplication($config)->run(); |