/homepages/30/d938873205/htdocs/www.huntingtrades.com/protected/components/Controller.php(27)
15 */ 16 public $menu=array(); 17 /** 18 * @var array the breadcrumbs of the current page. The value of this property will 19 * be assigned to {@link CBreadcrumbs::links}. Please refer to {@link CBreadcrumbs::links} 20 * for more details on how to specify this property. 21 */ 22 public $breadcrumbs=array(); 23 protected function beforeAction($action) 24 { 25 26 27 $settings = Yii::app()->settings; 28 29 $model = new SettingsForm(); 30 foreach($model->attributes as $category => $values){ 31 $cat = $model->$category; 32 foreach($values as $key=>$val){ 33 $c=$settings->get($category, $key); 34 if($key=='root_users'){ 35 $c=explode(',', $c); 36 } 37 Yii::app()->params[$key] = $c; 38 } 39 }
#0 |
+
–
/homepages/30/d938873205/htdocs/www.huntingtrades.com/yii/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 |
+
–
/homepages/30/d938873205/htdocs/www.huntingtrades.com/yii/db/CDbConnection.php(308): CDbConnection->setActive() 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 |
+
–
/homepages/30/d938873205/htdocs/www.huntingtrades.com/yii/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 |
+
–
/homepages/30/d938873205/htdocs/www.huntingtrades.com/protected/components/CmsSettings.php(408): CModule->getComponent() 403 /** 404 * @return CDbConnection the db connection component 405 */ 406 protected function getDbComponent() 407 { 408 return Yii::app()->getComponent($this->getDbComponentId()); 409 } 410 411 protected function addDbItem($category='system', $key, $value) 412 { 413 $connection=$this->getDbComponent(); |
#4 |
+
–
/homepages/30/d938873205/htdocs/www.huntingtrades.com/protected/components/CmsSettings.php(510): CmsSettings->getDbComponent() 505 /** 506 * create the settings table 507 */ 508 protected function createTable() 509 { 510 $connection=$this->getDbComponent(); 511 $tableName=$connection->tablePrefix.str_replace(array('{{','}}'), '', $this->getTableName()); 512 $sql='CREATE TABLE IF NOT EXISTS `'.$tableName.'` ( 513 `id` int(11) NOT NULL auto_increment, 514 `category` varchar(64) NOT NULL default \'system\', 515 `key` varchar(255) NOT NULL, |
#5 |
+
–
/homepages/30/d938873205/htdocs/www.huntingtrades.com/protected/components/CmsSettings.php(43): CmsSettings->createTable() 38 { 39 parent::init(); 40 Yii::app()->attachEventHandler('onEndRequest', array($this, 'whenRequestEnds')); 41 42 if($this->getCreateTable()) 43 $this->createTable(); 44 } 45 46 47 /** 48 * CmsSettings::set() |
#6 |
+
–
/homepages/30/d938873205/htdocs/www.huntingtrades.com/yii/base/CModule.php(387): CmsSettings->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 |
#7 |
+
–
/homepages/30/d938873205/htdocs/www.huntingtrades.com/yii/base/CModule.php(103): CModule->getComponent() 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 /** |
#8 |
+
–
/homepages/30/d938873205/htdocs/www.huntingtrades.com/protected/components/Controller.php(27): CModule->__get() 22 public $breadcrumbs=array(); 23 protected function beforeAction($action) 24 { 25 26 27 $settings = Yii::app()->settings; 28 29 $model = new SettingsForm(); 30 foreach($model->attributes as $category => $values){ 31 $cat = $model->$category; 32 foreach($values as $key=>$val){ |
#9 |
+
–
/homepages/30/d938873205/htdocs/www.huntingtrades.com/yii/web/CController.php(306): Controller->beforeAction() 301 */ 302 public function runAction($action) 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); |
#10 |
+
–
/homepages/30/d938873205/htdocs/www.huntingtrades.com/yii/web/CController.php(286): CController->runAction() 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(); |
#11 |
+
–
/homepages/30/d938873205/htdocs/www.huntingtrades.com/yii/web/CController.php(265): CController->runActionWithFilters() 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); |
#12 |
+
–
/homepages/30/d938873205/htdocs/www.huntingtrades.com/yii/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))); |
#13 |
+
–
/homepages/30/d938873205/htdocs/www.huntingtrades.com/yii/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. |
#14 |
+
–
/homepages/30/d938873205/htdocs/www.huntingtrades.com/yii/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 /** |
#15 |
+
–
/homepages/30/d938873205/htdocs/www.huntingtrades.com/index.php(16): CApplication->run() 11 defined('YII_DEBUG') or define('YII_DEBUG',true); 12 // specify how many levels of call stack should be shown in each log message 13 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 14 15 require_once($yii); 16 Yii::createWebApplication($config)->run(); |