/mnt/www/pgc/web/app/extensions/MyWebApplication.php(29)
17 if ( empty($site) ) 18 { 19 throw new CHttpException(404, "site not exists ..."); 20 } 21 22 $this->theme = $site->theme; 23 $this->name = $site->name; 24 if($domain=='pixpr.com'){ 25 $ceshi_site = Site::get(87); 26 $this->theme = $ceshi_site->theme; 27 } 28 Yii::app()->params['site'] = $site; 29 Yii::app()->params['adsense_id'] = $Domain_obj->adsense; 30 Yii::app()->params['adsense_status'] = $Domain_obj->adsense_status; 31 //adsense 状态 1 正常,0 待审核,2 异常 32 Yii::app()->params['lang'] = $site->lang; 33 } 34 }
#0 |
+
–
/mnt/www/pgc/web/app/extensions/MyWebApplication.php(29): CComponent->__get() 24 if($domain=='pixpr.com'){ 25 $ceshi_site = Site::get(87); 26 $this->theme = $ceshi_site->theme; 27 } 28 Yii::app()->params['site'] = $site; 29 Yii::app()->params['adsense_id'] = $Domain_obj->adsense; 30 Yii::app()->params['adsense_status'] = $Domain_obj->adsense_status; 31 //adsense 状态 1 正常,0 待审核,2 异常 32 Yii::app()->params['lang'] = $site->lang; 33 } 34 } |
#1 |
+
–
/mnt/phplibs/yii/framework/base/CApplication.php(170): MyWebApplication->init() 165 166 $this->configure($config); 167 $this->attachBehaviors($this->behaviors); 168 $this->preloadComponents(); 169 170 $this->init(); 171 } 172 173 174 /** 175 * Runs the application. |
#2 |
+
–
/mnt/phplibs/yii/framework/YiiBase.php(132): CApplication->__construct() 127 * to the constructor of the application class. 128 * @return mixed the application instance 129 */ 130 public static function createApplication($class,$config=null) 131 { 132 return new $class($config); 133 } 134 135 /** 136 * Returns the application singleton or null if the singleton has not been created yet. 137 * @return CApplication the application singleton, null if the singleton has not been created yet. |
#3 |
+
–
/mnt/www/pgc/web/public/index.php(34): YiiBase::createApplication() 29 30 31 require_once($yii); 32 $config=dirname(__FILE__).'/../app/config/' . Environment::$config; 33 include dirname(__FILE__).'/../app/extensions/MyWebApplication.php'; 34 Yii::createApplication('MyWebApplication', $config)->run(); 35 36 37 38 if(!empty($_GET['zgn']) && $_GET['zgn']==8){ 39 $xhprof_data = xhprof_disable(); |