E:\etc\www\Question\regis\protected\controllers\QuestionController.php(9)
01 <?php 02 03 class QuestionController extends Controller 04 { 05 06 public function init() 07 { 08 09 $cmsConfig = Yii::app()->db->createCommand("SELECT * FROM cms_config WHERE id= '1' ")->query(); 10 foreach ($cmsConfig as $row) { 11 $ProjectName = $row['ProjectName']; 12 $LogoName = $row['LogoName']; 13 $NameMainEn = $row['NameMainEn']; 14 $NameMainTh = $row['NameMainTh']; 15 $FooterOwn = $row['FooterOwn']; 16 $Contact = $row['Contact']; 17 $Weblink = $row['Weblink']; 18 $AdminMail = $row['AdminMail']; 19 $Facebook = $row['Facebook']; 20 $Twitter = $row['Twitter']; 21 $IntroPage = $row['IntroPage'];
#0 |
+
–
E:\etc\www\Question\regis\framework\db\CDbConnection.php(330): CDbConnection->open() 325 public function setActive($value) 326 { 327 if($value!=$this->_active) 328 { 329 if($value) 330 $this->open(); 331 else 332 $this->close(); 333 } 334 } 335 |
#1 |
+
–
E:\etc\www\Question\regis\framework\db\CDbConnection.php(308): CDbConnection->setActive(true) 303 */ 304 public function init() 305 { 306 parent::init(); 307 if($this->autoConnect) 308 $this->setActive(true); 309 } 310 311 /** 312 * Returns whether the DB connection is established. 313 * @return boolean whether the DB connection is established |
#2 |
+
–
E:\etc\www\Question\regis\framework\base\CModule.php(387): CDbConnection->init() 382 if(!isset($config['enabled']) || $config['enabled']) 383 { 384 Yii::trace("Loading \"$id\" application component",'system.CModule'); 385 unset($config['enabled']); 386 $component=Yii::createComponent($config); 387 $component->init(); 388 return $this->_components[$id]=$component; 389 } 390 } 391 } 392 |
#3 |
+
–
E:\etc\www\Question\regis\framework\base\CModule.php(103): CModule->getComponent("db") 098 * @return mixed the named property value 099 */ 100 public function __get($name) 101 { 102 if($this->hasComponent($name)) 103 return $this->getComponent($name); 104 else 105 return parent::__get($name); 106 } 107 108 /** |
#4 |
+
–
E:\etc\www\Question\regis\protected\controllers\QuestionController.php(9): CModule->__get("db") 04 { 05 06 public function init() 07 { 08 09 $cmsConfig = Yii::app()->db->createCommand("SELECT * FROM cms_config WHERE id= '1' ")->query(); 10 foreach ($cmsConfig as $row) { 11 $ProjectName = $row['ProjectName']; 12 $LogoName = $row['LogoName']; 13 $NameMainEn = $row['NameMainEn']; 14 $NameMainTh = $row['NameMainTh']; |
#5 |
+
–
E:\etc\www\Question\regis\framework\web\CWebApplication.php(281): QuestionController->init() 276 if(($ca=$this->createController($route))!==null) 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}".', |
#6 |
+
–
E:\etc\www\Question\regis\framework\web\CWebApplication.php(141): CWebApplication->runController("question/index") 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. |
#7 |
+
–
E:\etc\www\Question\regis\framework\base\CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
#8 |
+
–
E:\etc\www\Question\regis\index.php(13): CApplication->run() 08 defined('YII_DEBUG') or define('YII_DEBUG',true); 09 // specify how many levels of call stack should be shown in each log message 10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 11 12 require_once($yii); 13 Yii::createWebApplication($config)->run(); |