/home/nhadatha/public_html/protected/models/forms/SettingForm.php(216)
204 foreach (self::$smtpFields as $k => $v) { 205 if ($v == $item) 206 Yii::app()->mail->transportOptions[$k] = Yii::app()->setting->getItem($item); 207 } 208 } 209 } 210 } 211 else { 212 Yii::app()->mail->transportOptions = ''; 213 } 214 215 // none SMTP fields 216 if (!in_array($item, self::$smtpFields) && Yii::app()->setting->getItem($item)) { 217 Yii::app()->params[$item] = Yii::app()->setting->getItem($item); 218 } 219 } 220 } 221 } 222 223 /* 224 * Austin added date 6/7/2014 225 * get all attributes from setting array 226 */ 227 228 public static function getAllAttributes() {
#0 |
+
–
/home/nhadatha/public_html/yii-framework-1.1.15/yii.php(8399): CDbConnection->open() 8394 public function setActive($value) 8395 { 8396 if($value!=$this->_active) 8397 { 8398 if($value) 8399 $this->open(); 8400 else 8401 $this->close(); 8402 } 8403 } 8404 public function cache($duration, $dependency=null, $queryCount=1) |
#1 |
+
–
/home/nhadatha/public_html/yii-framework-1.1.15/yii.php(8388): CDbConnection->setActive(true) 8383 } 8384 public function init() 8385 { 8386 parent::init(); 8387 if($this->autoConnect) 8388 $this->setActive(true); 8389 } 8390 public function getActive() 8391 { 8392 return $this->_active; 8393 } |
#2 |
+
–
/home/nhadatha/public_html/yii-framework-1.1.15/yii.php(1060): CDbConnection->init() 1055 $config=$this->_componentConfig[$id]; 1056 if(!isset($config['enabled']) || $config['enabled']) 1057 { 1058 unset($config['enabled']); 1059 $component=Yii::createComponent($config); 1060 $component->init(); 1061 return $this->_components[$id]=$component; 1062 } 1063 } 1064 } 1065 public function setComponent($id,$component,$merge=true) |
#3 |
+
–
/home/nhadatha/public_html/yii-framework-1.1.15/yii.php(1312): CModule->getComponent("db") 1307 { 1308 return $this->getLocale()->getDateFormatter(); 1309 } 1310 public function getDb() 1311 { 1312 return $this->getComponent('db'); 1313 } 1314 public function getErrorHandler() 1315 { 1316 return $this->getComponent('errorHandler'); 1317 } |
#4 |
+
–
/home/nhadatha/public_html/protected/extensions/MyConfig/MyConfig.php(207): CApplication->getDb() 202 if($this->getUseCache()) 203 $items=Yii::app()->cache->get($this->getCacheId()); 204 205 if(!$items) 206 { 207 $connection=Yii::app()->getDb(); 208 $command=$connection->createCommand('SELECT * FROM '.$this->getTableName().' WHERE 1'); 209 $result=$command->queryAll(); 210 211 if(empty($result)) 212 return false; |
#5 |
+
–
/home/nhadatha/public_html/protected/extensions/MyConfig/MyConfig.php(41): MyConfig->loadDbItems() 36 * @return 37 */ 38 public function init() 39 { 40 if($this->getLoadDbItems()) 41 $this->loadDbItems(); 42 43 if($this->getCreateTable()) 44 $this->createTable(); 45 46 $this->_initialized=true; |
#6 |
+
–
/home/nhadatha/public_html/yii-framework-1.1.15/yii.php(1060): MyConfig->init() 1055 $config=$this->_componentConfig[$id]; 1056 if(!isset($config['enabled']) || $config['enabled']) 1057 { 1058 unset($config['enabled']); 1059 $component=Yii::createComponent($config); 1060 $component->init(); 1061 return $this->_components[$id]=$component; 1062 } 1063 } 1064 } 1065 public function setComponent($id,$component,$merge=true) |
#7 |
+
–
/home/nhadatha/public_html/yii-framework-1.1.15/yii.php(915): CModule->getComponent("setting") 910 $this->init(); 911 } 912 public function __get($name) 913 { 914 if($this->hasComponent($name)) 915 return $this->getComponent($name); 916 else 917 return parent::__get($name); 918 } 919 public function __isset($name) 920 { |
#8 |
+
–
/home/nhadatha/public_html/protected/models/forms/SettingForm.php(216): CModule->__get("setting") 211 else { 212 Yii::app()->mail->transportOptions = ''; 213 } 214 215 // none SMTP fields 216 if (!in_array($item, self::$smtpFields) && Yii::app()->setting->getItem($item)) { 217 Yii::app()->params[$item] = Yii::app()->setting->getItem($item); 218 } 219 } 220 } 221 } |
#9 |
+
–
/home/nhadatha/public_html/index.php(26): SettingForm::applySettings() 21 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 22 // remove the following lines when in production mode 23 24 require_once($yii); 25 Yii::createWebApplication($config); 26 SettingForm::applySettings();//override settings by values from database 27 Yii::app()->run(); |