/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(Page) 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/Page.php(58): CActiveRecord::model("Page") 53 * Returns the static model of the specified AR class. 54 * @return Page the static model class 55 */ 56 public static function model($className=__CLASS__) 57 { 58 return parent::model($className); 59 } 60 61 /** 62 * @return string the associated database table name 63 */ |
#12 |
+
–
/home/luxemallorca/public_html/rent/public_html/protected/components/PagesRoute.php(25): Page::model() 20 } 21 22 public function parseUrl($manager,$request,$pathInfo,$rawPathInfo) 23 { 24 $tryLanguages = array('en','es','de','ru'); 25 $pages = Page::model()->findAll(array('select'=>'id,title_en,title_es,title_de,title_ru')); 26 foreach ($pages as $page) { 27 foreach($tryLanguages as $language){ 28 $page_title = $pathInfo; 29 $title='title_'.$language; 30 |
#13 |
+
–
/home/luxemallorca/public_html/rent/framework/web/CUrlManager.php(354): PagesRoute->parseUrl(UrlManager, CHttpRequest, "news/view/6", "news/view/6") 349 $pathInfo=$this->removeUrlSuffix($rawPathInfo,$this->urlSuffix); 350 foreach($this->_rules as $i=>$rule) 351 { 352 if(is_array($rule)) 353 $this->_rules[$i]=$rule=Yii::createComponent($rule); 354 if(($r=$rule->parseUrl($this,$request,$pathInfo,$rawPathInfo))!==false) 355 return isset($_GET[$this->routeVar]) ? $_GET[$this->routeVar] : $r; 356 } 357 if($this->useStrictParsing) 358 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 359 array('{route}'=>$pathInfo))); |
#14 |
+
–
/home/luxemallorca/public_html/rent/public_html/protected/components/UrlManager.php(12): CUrlManager->parseUrl(CHttpRequest) 07 if(strcasecmp('admin/', substr($route, 0, 6)) !== 0 && !isset($params['language'])) $params['language'] = Yii::app()->language; 08 return parent::createUrl($route, $params, $ampersand); 09 } 10 public function parseUrl($request) 11 { 12 $ret = parent::parseUrl($request); 13 if(isset($_GET['language'])) Yii::app()->language = $_GET['language']; 14 return $ret; 15 } 16 } |
#15 |
+
–
/home/luxemallorca/public_html/rent/framework/web/CWebApplication.php(135): UrlManager->parseUrl(CHttpRequest) 130 $route=$this->catchAllRequest[0]; 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. |
#16 |
+
–
/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 /** |
#17 |
+
–
/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(); |