/home/zikbay/public_html/yii-1.1.7.r3135/framework/db/ar/CActiveRecord.php(2237)
2225 private $_model; 2226 2227 /** 2228 * Constructor. 2229 * @param CActiveRecord $model the model instance 2230 */ 2231 public function __construct($model) 2232 { 2233 $this->_model=$model; 2234 2235 $tableName=$model->tableName(); 2236 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2237 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2238 array('{class}'=>get_class($model),'{table}'=>$tableName))); 2239 if($table->primaryKey===null) 2240 $table->primaryKey=$model->primaryKey(); 2241 $this->tableSchema=$table; 2242 $this->columns=$table->columns; 2243 2244 foreach($table->columns as $name=>$column) 2245 { 2246 if(!$column->isPrimaryKey && $column->defaultValue!==null) 2247 $this->attributeDefaults[$name]=$column->defaultValue; 2248 } 2249
#0 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/db/ar/CActiveRecord.php(371): CActiveRecordMetaData->__construct(Annonce) 366 if(isset(self::$_models[$className])) 367 return self::$_models[$className]; 368 else 369 { 370 $model=self::$_models[$className]=new $className(null); 371 $model->_md=new CActiveRecordMetaData($model); 372 $model->attachBehaviors($model->behaviors()); 373 return $model; 374 } 375 } 376 |
#1 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/db/ar/CActiveRecord.php(386): CActiveRecord::model("Annonce") 381 public function getMetaData() 382 { 383 if($this->_md!==null) 384 return $this->_md; 385 else 386 return $this->_md=self::model(get_class($this))->_md; 387 } 388 389 /** 390 * Refreshes the meta data for this AR class. 391 * By calling this method, this AR class will regenerate the meta data needed. |
#2 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/db/ar/CActiveRecord.php(62): CActiveRecord->getMetaData() 57 if($scenario===null) // internally used by populateRecord() and model() 58 return; 59 60 $this->setScenario($scenario); 61 $this->setIsNewRecord(true); 62 $this->_attributes=$this->getMetaData()->attributeDefaults; 63 64 $this->init(); 65 66 $this->attachBehaviors($this->behaviors()); 67 $this->afterConstruct(); |
#3 |
+
–
/home/zikbay/public_html/protected/modules/Ads/controllers/AdController.php(13): CActiveRecord->__construct() 08 09 public function actionListByCategory() 10 11 { 12 13 $model=new Annonce(); 14 15 16 17 $area = $this->get('location',''); 18 |
#4 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/web/actions/CInlineAction.php(50): AdController->actionListByCategory() 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 } |
#5 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/web/CController.php(300): CInlineAction->runWithParams(array("alias" => "services_2", "cat_id" => "7")) 295 { 296 $priorAction=$this->_action; 297 $this->_action=$action; 298 if($this->beforeAction($action)) 299 { 300 if($action->runWithParams($this->getActionParams())===false) 301 $this->invalidActionParams($action); 302 else 303 $this->afterAction($action); 304 } 305 $this->_action=$priorAction; |
#6 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/web/CController.php(278): CController->runAction(CInlineAction) 273 * @see runAction 274 */ 275 public function runActionWithFilters($action,$filters) 276 { 277 if(empty($filters)) 278 $this->runAction($action); 279 else 280 { 281 $priorAction=$this->_action; 282 $this->_action=$action; 283 CFilterChain::create($this,$action,$filters)->run(); |
#7 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array()) 252 { 253 if(($parent=$this->getModule())===null) 254 $parent=Yii::app(); 255 if($parent->beforeControllerAction($this,$action)) 256 { 257 $this->runActionWithFilters($action,$this->filters()); 258 $parent->afterControllerAction($this,$action); 259 } 260 } 261 else 262 $this->missingAction($actionID); |
#8 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/web/CWebApplication.php(328): CController->run("listByCategory") 323 { 324 list($controller,$actionID)=$ca; 325 $oldController=$this->_controller; 326 $this->_controller=$controller; 327 $controller->init(); 328 $controller->run($actionID); 329 $this->_controller=$oldController; 330 } 331 else 332 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 333 array('{route}'=>$route===''?$this->defaultController:$route))); |
#9 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/web/CWebApplication.php(121): CWebApplication->runController("Ads/ad/listByCategory") 116 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 117 $_GET[$name]=$value; 118 } 119 else 120 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 121 $this->runController($route); 122 } 123 124 /** 125 * Registers the core application components. 126 * This method overrides the parent implementation by registering additional core components. |
#10 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/base/CApplication.php(155): CWebApplication->processRequest() 150 */ 151 public function run() 152 { 153 if($this->hasEventHandler('onBeginRequest')) 154 $this->onBeginRequest(new CEvent($this)); 155 $this->processRequest(); 156 if($this->hasEventHandler('onEndRequest')) 157 $this->onEndRequest(new CEvent($this)); 158 } 159 160 /** |
#11 |
+
–
/home/zikbay/public_html/index.php(25): CApplication->run() 20 ) 21 { 22 require_once(dirname(__FILE__).'/protected/modules/install/install.php'); 23 }else{ 24 require_once($yii); 25 Yii::createWebApplication($config)->run(); 26 } |