/var/www/i13/estore/protected/models/Mistable.php(28)
16 * @property string $stringvalue3 17 * @property string $usagedesc 18 */ 19 class Mistable extends CActiveRecord 20 { 21 22 public $dbConnection; 23 public $dbSchema; 24 25 // constructor for db connection 26 public function __construct() 27 { 28 $this->dbConnection = Yii::app()->db; 29 $this->dbSchema = isset (Yii::app ()->controller->octDbSchema) ? Yii::app ()->controller->octDbSchema : 'public'; 30 31 parent::__construct(); 32 } 33 34 /** 35 * @return string the associated database table name 36 */ 37 public function tableName () 38 { 39 return $this->dbSchema.'.mistable'; 40 }
#0 |
+
–
/var/www/i13/estore/vendor/yiisoft/yii/framework/db/CDbConnection.php(347): CDbConnection->open() 342 public function setActive($value) 343 { 344 if($value!=$this->_active) 345 { 346 if($value) 347 $this->open(); 348 else 349 $this->close(); 350 } 351 } 352 |
#1 |
+
–
/var/www/i13/estore/vendor/yiisoft/yii/framework/db/CDbConnection.php(325): CDbConnection->setActive(true) 320 */ 321 public function init() 322 { 323 parent::init(); 324 if($this->autoConnect) 325 $this->setActive(true); 326 } 327 328 /** 329 * Returns whether the DB connection is established. 330 * @return boolean whether the DB connection is established |
#2 |
+
–
/var/www/i13/estore/vendor/yiisoft/yii/framework/base/CModule.php(394): CDbConnection->init() 389 if(!isset($config['enabled']) || $config['enabled']) 390 { 391 Yii::trace("Loading \"$id\" application component",'system.CModule'); 392 unset($config['enabled']); 393 $component=Yii::createComponent($config); 394 $component->init(); 395 return $this->_components[$id]=$component; 396 } 397 } 398 } 399 |
#3 |
+
–
/var/www/i13/estore/vendor/yiisoft/yii/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 |
+
–
/var/www/i13/estore/protected/models/Mistable.php(28): CModule->__get("db") 23 public $dbSchema; 24 25 // constructor for db connection 26 public function __construct() 27 { 28 $this->dbConnection = Yii::app()->db; 29 $this->dbSchema = isset (Yii::app ()->controller->octDbSchema) ? Yii::app ()->controller->octDbSchema : 'public'; 30 31 parent::__construct(); 32 } 33 |
#5 |
+
–
/var/www/i13/estore/protected/components/Octopus.php(36): Mistable->__construct() 31 return self::$appVersion; 32 } 33 34 //get theme for ecom 35 public static function getEcomThemeName(){ 36 $modelMistable = new Mistable (); 37 return $modelMistable->getConstant ('website_theme'); 38 } 39 40 public static function getEcomThemePath(){ 41 $baseUrl = Yii::app()->request->baseUrl; |
#6 |
+
–
/var/www/i13/estore/protected/modules/cart/components/Controller.php(11): Octopus::getEcomThemeName() 06 class Controller extends OcController 07 // class Controller extends OcController 08 { 09 public function init () 10 { 11 $website_theme = Octopus::getEcomThemeName(); 12 if($website_theme && $website_theme!=''){ 13 Yii::app()->theme = $website_theme; 14 } 15 } 16 |
#7 |
+
–
/var/www/i13/estore/vendor/yiisoft/yii/framework/web/CWebApplication.php(281): Controller->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}".', |
#8 |
+
–
/var/www/i13/estore/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("cart/product/list/type/1/item/189/aType/brand/id/437") 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. |
#9 |
+
–
/var/www/i13/estore/vendor/yiisoft/yii/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#10 |
+
–
/var/www/i13/estore/index.php(65): CApplication->run() 60 61 // merging main config file with envirnment base config file 62 $config = array_merge_recursive ($configMain, $configServer); 63 64 require_once ($yii); 65 Yii::createWebApplication ($config)->run(); |