/var/www/public_html/common/models/ProductCategory.php(64)
52 * @return string the associated database table name 53 */ 54 public function tableName() 55 { 56 return 'product_category'; 57 } 58 59 /** 60 * @return CDBConnection the associated database connection 61 */ 62 public function getDbConnection() 63 { 64 return Yii::app()->dbp; 65 } 66 67 /** 68 * @return array validation rules for model attributes. 69 */ 70 public function rules() 71 { 72 return array( 73 array('name, title', 'required'), 74 array( 75 'pid, sort_order, active, published, created_by, updated_by, downloads', 76 'style',
#0 |
+
–
/var/www/public_html/common/lib/Yii/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/public_html/common/lib/Yii/db/CDbConnection.php(325): CDbConnection->setActive() 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/public_html/common/lib/Yii/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/public_html/common/lib/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 /** |
#4 |
+
–
/var/www/public_html/common/models/ProductCategory.php(64): CModule->__get() 59 /** 60 * @return CDBConnection the associated database connection 61 */ 62 public function getDbConnection() 63 { 64 return Yii::app()->dbp; 65 } 66 67 /** 68 * @return array validation rules for model attributes. 69 */ |
#5 |
+
–
/var/www/public_html/common/lib/Yii/db/ar/CActiveRecord.php(2389): ProductCategory->getDbConnection() 2384 public function __construct($model) 2385 { 2386 $this->_modelClassName=get_class($model); 2387 2388 $tableName=$model->tableName(); 2389 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2390 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2391 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName))); 2392 2393 if(($modelPk=$model->primaryKey())!==null || $table->primaryKey===null) 2394 { |
#6 |
+
–
/var/www/public_html/common/lib/Yii/db/ar/CActiveRecord.php(413): CActiveRecordMetaData->__construct() 408 { 409 $className=get_class($this); 410 if(!array_key_exists($className,self::$_md)) 411 { 412 self::$_md[$className]=null; // preventing recursive invokes of {@link getMetaData()} via {@link __get()} 413 self::$_md[$className]=new CActiveRecordMetaData($this); 414 } 415 return self::$_md[$className]; 416 } 417 418 /** |
#7 |
+
–
/var/www/public_html/common/lib/Yii/db/ar/CActiveRecord.php(214): CActiveRecord->getMetaData() 209 * @param array $parameters method parameters 210 * @return mixed the method return value 211 */ 212 public function __call($name,$parameters) 213 { 214 if(isset($this->getMetaData()->relations[$name])) 215 { 216 if(empty($parameters)) 217 return $this->getRelated($name,false); 218 else 219 return $this->getRelated($name,false,$parameters[0]); |
#8 |
+
–
/var/www/public_html/frontend/controllers/SiteController.php(1861): CActiveRecord->__call() 1856 */ 1857 public function actionCategory($slug) 1858 { 1859 $this->layout = '//layouts/page'; 1860 1861 $category = ProductCategory::model()->active()->ofSlug($slug)->find(); 1862 1863 if (is_null($category)) { 1864 throw new CHttpException(400, 'Invalid request. Selected category does not exist.'); 1865 } 1866 |
#9 |
unknown(0): SiteController->actionCategory()
|
#10 |
+
–
/var/www/public_html/common/lib/Yii/web/actions/CAction.php(109): ReflectionMethod->invokeArgs() 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#11 |
+
–
/var/www/public_html/common/lib/Yii/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal() 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#12 |
+
–
/var/www/public_html/common/lib/Yii/web/CController.php(308): CInlineAction->runWithParams() 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); 312 } 313 $this->_action=$priorAction; |
#13 |
+
–
/var/www/public_html/common/lib/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(); |
#14 |
+
–
/var/www/public_html/common/lib/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); |
#15 |
+
–
/var/www/public_html/common/lib/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))); |
#16 |
+
–
/var/www/public_html/common/components/WebApplication.php(33): CWebApplication->runController() 28 * that Apache polls its processes to see if they're alive. This function causes 29 * Yii to respond without logging errors. 30 */ 31 public function runController($route) { 32 try { 33 parent::runController($route); 34 } catch (CHttpException $e) { 35 if (@$_SERVER['REQUEST_METHOD'] == 'OPTIONS' && @$_SERVER['REQUEST_URI'] == '*') { 36 Yii::app()->end('Hello, friend!'); 37 } else 38 throw $e; |
#17 |
+
–
/var/www/public_html/common/lib/Yii/web/CWebApplication.php(141): WebApplication->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. |
#18 |
+
–
/var/www/public_html/common/lib/Yii/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 /** |
#19 |
+
–
/var/www/public_html/frontend/www/index.php(38): CApplication->run() 33 EZendAutoloader::$basePath = Yii::getPathOfAlias('common.lib') . DIRECTORY_SEPARATOR; 34 35 Yii::registerAutoloader(array("EZendAutoloader", "loadClass"), true); 36 */ 37 38 $app->run(); 39 40 /* uncomment if you wish to debug your resulting config */ 41 /* echo '<pre>' . dump($config) . '</pre>'; */ |