/home/luxemallorca/public_html/rent/framework/YiiBase.php(421)
409 { 410 foreach(self::$_includePaths as $path) 411 { 412 $classFile=$path.DIRECTORY_SEPARATOR.$className.'.php'; 413 if(is_file($classFile)) 414 { 415 include($classFile); 416 break; 417 } 418 } 419 } 420 else 421 include($className.'.php'); 422 } 423 else // class name with namespace in PHP 5.3 424 { 425 $namespace=str_replace('\\','.',ltrim($className,'\\')); 426 if(($path=self::getPathOfAlias($namespace))!==false) 427 include($path.'.php'); 428 else 429 return false; 430 } 431 return class_exists($className,false) || interface_exists($className,false); 432 } 433 return true;
#0 |
+
–
/home/luxemallorca/public_html/rent/framework/YiiBase.php(421): YiiBase::autoload() 416 break; 417 } 418 } 419 } 420 else 421 include($className.'.php'); 422 } 423 else // class name with namespace in PHP 5.3 424 { 425 $namespace=str_replace('\\','.',ltrim($className,'\\')); 426 if(($path=self::getPathOfAlias($namespace))!==false) |
#1 |
unknown(0): YiiBase::autoload("PDO")
|
#2 |
+
–
/home/luxemallorca/public_html/rent/framework/db/CDbConnection.php(404): spl_autoload_call("PDO") 399 { 400 $driver=strtolower(substr($this->connectionString,0,$pos)); 401 if($driver==='mssql' || $driver==='dblib' || $driver==='sqlsrv') 402 $pdoClass='CMssqlPdoAdapter'; 403 } 404 return new $pdoClass($this->connectionString,$this->username, 405 $this->password,$this->_attributes); 406 } 407 408 /** 409 * Initializes the open db connection. |
#3 |
+
–
/home/luxemallorca/public_html/rent/framework/db/CDbConnection.php(356): CDbConnection->createPdoInstance() 351 if(empty($this->connectionString)) 352 throw new CDbException(Yii::t('yii','CDbConnection.connectionString cannot be empty.')); 353 try 354 { 355 Yii::trace('Opening DB connection','system.db.CDbConnection'); 356 $this->_pdo=$this->createPdoInstance(); 357 $this->initConnection($this->_pdo); 358 $this->_active=true; 359 } 360 catch(PDOException $e) 361 { |
#4 |
+
–
/home/luxemallorca/public_html/rent/framework/db/CDbConnection.php(313): CDbConnection->open() 308 public function setActive($value) 309 { 310 if($value!=$this->_active) 311 { 312 if($value) 313 $this->open(); 314 else 315 $this->close(); 316 } 317 } 318 |
#5 |
+
–
/home/luxemallorca/public_html/rent/framework/db/CDbConnection.php(291): CDbConnection->setActive(true) 286 */ 287 public function init() 288 { 289 parent::init(); 290 if($this->autoConnect) 291 $this->setActive(true); 292 } 293 294 /** 295 * Returns whether the DB connection is established. 296 * @return boolean whether the DB connection is established |
#6 |
+
–
/home/luxemallorca/public_html/rent/framework/base/CModule.php(372): CDbConnection->init() 367 if(!isset($config['enabled']) || $config['enabled']) 368 { 369 Yii::trace("Loading \"$id\" application component",'system.CModule'); 370 unset($config['enabled']); 371 $component=Yii::createComponent($config); 372 $component->init(); 373 return $this->_components[$id]=$component; 374 } 375 } 376 } 377 |
#7 |
+
–
/home/luxemallorca/public_html/rent/framework/base/CApplication.php(429): CModule->getComponent("db") 424 * Returns the database connection component. 425 * @return CDbConnection the database connection 426 */ 427 public function getDb() 428 { 429 return $this->getComponent('db'); 430 } 431 432 /** 433 * Returns the error handler component. 434 * @return CErrorHandler the error handler application component. |
#8 |
+
–
/home/luxemallorca/public_html/rent/framework/db/ar/CActiveRecord.php(609): CApplication->getDb() 604 { 605 if(self::$db!==null) 606 return self::$db; 607 else 608 { 609 self::$db=Yii::app()->getDb(); 610 if(self::$db instanceof CDbConnection) 611 return self::$db; 612 else 613 throw new CDbException(Yii::t('yii','Active Record requires a "db" CDbConnection application component.')); 614 } |
#9 |
+
–
/home/luxemallorca/public_html/rent/framework/db/ar/CActiveRecord.php(2275): CActiveRecord->getDbConnection() 2270 public function __construct($model) 2271 { 2272 $this->_model=$model; 2273 2274 $tableName=$model->tableName(); 2275 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2276 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2277 array('{class}'=>get_class($model),'{table}'=>$tableName))); 2278 if($table->primaryKey===null) 2279 { 2280 $table->primaryKey=$model->primaryKey(); |
#10 |
+
–
/home/luxemallorca/public_html/rent/framework/db/ar/CActiveRecord.php(372): CActiveRecordMetaData->__construct(Estate) 367 if(isset(self::$_models[$className])) 368 return self::$_models[$className]; 369 else 370 { 371 $model=self::$_models[$className]=new $className(null); 372 $model->_md=new CActiveRecordMetaData($model); 373 $model->attachBehaviors($model->behaviors()); 374 return $model; 375 } 376 } 377 |
#11 |
+
–
/home/luxemallorca/public_html/rent/public_html/protected/models/Estate.php(100): CActiveRecord::model("Estate") 095 * Returns the static model of the specified AR class. 096 * @return Estate the static model class 097 */ 098 public static function model($className=__CLASS__) 099 { 100 return parent::model($className); 101 } 102 103 /** 104 * @return string the associated database table name 105 */ |
#12 |
+
–
/home/luxemallorca/public_html/rent/public_html/protected/controllers/EstateController.php(30): Estate::model() 25 /** 26 * Displays a particular model. 27 */ 28 public function actionView($id) 29 { 30 $model = Estate::model()->findbyPk($id); 31 32 $model->views = $model->views+1; 33 $model->save(); 34 35 $this->render('view',array( |
#13 |
unknown(0): EstateController->actionView("2154")
|
#14 |
+
–
/home/luxemallorca/public_html/rent/framework/web/actions/CAction.php(104): ReflectionMethod->invokeArgs(EstateController, array("2154")) 099 else if($param->isDefaultValueAvailable()) 100 $ps[]=$param->getDefaultValue(); 101 else 102 return false; 103 } 104 $method->invokeArgs($object,$ps); 105 return true; 106 } 107 } |
#15 |
+
–
/home/luxemallorca/public_html/rent/framework/web/actions/CInlineAction.php(48): CAction->runWithParamsInternal(EstateController, ReflectionMethod, array("id" => "2154", "language" => "ru")) 43 { 44 $methodName='action'.$this->getId(); 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 } |
#16 |
+
–
/home/luxemallorca/public_html/rent/framework/web/CController.php(300): CInlineAction->runWithParams(array("id" => "2154", "language" => "ru")) 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; |
#17 |
+
–
/home/luxemallorca/public_html/rent/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(); |
#18 |
+
–
/home/luxemallorca/public_html/rent/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); |
#19 |
+
–
/home/luxemallorca/public_html/rent/framework/web/CWebApplication.php(277): CController->run("view") 272 { 273 list($controller,$actionID)=$ca; 274 $oldController=$this->_controller; 275 $this->_controller=$controller; 276 $controller->init(); 277 $controller->run($actionID); 278 $this->_controller=$oldController; 279 } 280 else 281 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 282 array('{route}'=>$route===''?$this->defaultController:$route))); |
#20 |
+
–
/home/luxemallorca/public_html/rent/framework/web/CWebApplication.php(136): CWebApplication->runController("estate/view") 131 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 132 $_GET[$name]=$value; 133 } 134 else 135 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 136 $this->runController($route); 137 } 138 139 /** 140 * Registers the core application components. 141 * This method overrides the parent implementation by registering additional core components. |
#21 |
+
–
/home/luxemallorca/public_html/rent/framework/base/CApplication.php(158): CWebApplication->processRequest() 153 */ 154 public function run() 155 { 156 if($this->hasEventHandler('onBeginRequest')) 157 $this->onBeginRequest(new CEvent($this)); 158 $this->processRequest(); 159 if($this->hasEventHandler('onEndRequest')) 160 $this->onEndRequest(new CEvent($this)); 161 } 162 163 /** |
#22 |
+
–
/home/luxemallorca/public_html/rent/public_html/index.php(13): CApplication->run() 08 defined('YII_DEBUG') or define('YII_DEBUG',true); 09 // specify how many levels of call stack should be shown in each log message 10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 11 12 require_once($yii); 13 Yii::createWebApplication($config)->run(); |