/home/storage/7/f8/15/casaimoveischape1/public_html/extranet/yii/db/CDbConnection.php(381)
369 throw new CDbException('CDbConnection.connectionString cannot be empty.'); 370 try 371 { 372 Yii::trace('Opening DB connection','system.db.CDbConnection'); 373 $this->_pdo=$this->createPdoInstance(); 374 $this->initConnection($this->_pdo); 375 $this->_active=true; 376 } 377 catch(PDOException $e) 378 { 379 if(YII_DEBUG) 380 { 381 throw new CDbException('CDbConnection failed to open the DB connection: '. 382 $e->getMessage(),(int)$e->getCode(),$e->errorInfo); 383 } 384 else 385 { 386 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException'); 387 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo); 388 } 389 } 390 } 391 } 392 393 /**
#0 |
+
–
/home/storage/7/f8/15/casaimoveischape1/public_html/extranet/yii/db/CDbConnection.php(330): CDbConnection->open() 325 public function setActive($value) 326 { 327 if($value!=$this->_active) 328 { 329 if($value) 330 $this->open(); 331 else 332 $this->close(); 333 } 334 } 335 |
#1 |
+
–
/home/storage/7/f8/15/casaimoveischape1/public_html/extranet/yii/db/CDbConnection.php(308): CDbConnection->setActive(true) 303 */ 304 public function init() 305 { 306 parent::init(); 307 if($this->autoConnect) 308 $this->setActive(true); 309 } 310 311 /** 312 * Returns whether the DB connection is established. 313 * @return boolean whether the DB connection is established |
#2 |
+
–
/home/storage/7/f8/15/casaimoveischape1/public_html/extranet/yii/base/CModule.php(387): CDbConnection->init() 382 if(!isset($config['enabled']) || $config['enabled']) 383 { 384 Yii::trace("Loading \"$id\" application component",'system.CModule'); 385 unset($config['enabled']); 386 $component=Yii::createComponent($config); 387 $component->init(); 388 return $this->_components[$id]=$component; 389 } 390 } 391 } 392 |
#3 |
+
–
/home/storage/7/f8/15/casaimoveischape1/public_html/extranet/yii/base/CApplication.php(453): CModule->getComponent("db") 448 * Returns the database connection component. 449 * @return CDbConnection the database connection 450 */ 451 public function getDb() 452 { 453 return $this->getComponent('db'); 454 } 455 456 /** 457 * Returns the error handler component. 458 * @return CErrorHandler the error handler application component. |
#4 |
+
–
/home/storage/7/f8/15/casaimoveischape1/public_html/extranet/yii/db/ar/CActiveRecord.php(623): CApplication->getDb() 618 { 619 if(self::$db!==null) 620 return self::$db; 621 else 622 { 623 self::$db=Yii::app()->getDb(); 624 if(self::$db instanceof CDbConnection) 625 return self::$db; 626 else 627 throw new CDbException(Yii::t('yii','Active Record requires a "db" CDbConnection application component.')); 628 } |
#5 |
+
–
/home/storage/7/f8/15/casaimoveischape1/public_html/extranet/yii/db/ar/CActiveRecord.php(2311): CActiveRecord->getDbConnection() 2306 public function __construct($model) 2307 { 2308 $this->_model=$model; 2309 2310 $tableName=$model->tableName(); 2311 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2312 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2313 array('{class}'=>get_class($model),'{table}'=>$tableName))); 2314 if($table->primaryKey===null) 2315 { 2316 $table->primaryKey=$model->primaryKey(); |
#6 |
+
–
/home/storage/7/f8/15/casaimoveischape1/public_html/extranet/yii/db/ar/CActiveRecord.php(387): CActiveRecordMetaData->__construct(Banner) 382 if(isset(self::$_models[$className])) 383 return self::$_models[$className]; 384 else 385 { 386 $model=self::$_models[$className]=new $className(null); 387 $model->_md=new CActiveRecordMetaData($model); 388 $model->attachBehaviors($model->behaviors()); 389 return $model; 390 } 391 } 392 |
#7 |
+
–
/home/storage/7/f8/15/casaimoveischape1/public_html/extranet/protected/extensions/giix-components/GxActiveRecord.php(26): CActiveRecord::model("Banner") 21 * composite pk table. Usually a character. 22 */ 23 public static $pkSeparator = '-'; 24 25 public static function model($className=__CLASS__) { 26 return parent::model($className); 27 } 28 29 /** 30 * This method should be overridden to declare related pivot models for each MANY_MANY relationship. 31 * The pivot model is used by {@link saveWithRelated}. |
#8 |
+
–
/home/storage/7/f8/15/casaimoveischape1/public_html/extranet/protected/models/_base/BaseBanner.php(27): GxActiveRecord::model("Banner") 22 abstract class BaseBanner extends GxActiveRecord { 23 24 25 26 public static function model($className=__CLASS__) { 27 return parent::model($className); 28 } 29 30 public function tableName() { 31 return 'banner'; 32 } |
#9 |
+
–
/home/storage/7/f8/15/casaimoveischape1/public_html/extranet/protected/models/Banner.php(8): BaseBanner::model("Banner") 03 Yii::import('application.models._base.BaseBanner'); 04 05 class Banner extends BaseBanner 06 { 07 public static function model($className=__CLASS__) { 08 return parent::model($className); 09 } 10 11 12 public function init(){ 13 |
#10 |
+
–
/home/storage/7/f8/15/casaimoveischape1/public_html/banner_lista.php(6): Banner::model() 01 <div class="banner"> 02 <?php 03 $criteria = new CDbCriteria(); 04 $criteria->order = 'idbanner desc'; 05 $criteria->addCondition( "ativo = 1" ); 06 $banners = Banner::model()->findAll( $criteria ); 07 foreach ( $banners as $banner ) { 08 ?> 09 <div> 10 <div class="textos"> 11 <h2><?=$banner->titulo_destaque?></h2> |
#11 |
+
–
/home/storage/7/f8/15/casaimoveischape1/public_html/inicial.php(55): include("/home/storage/7/f8/15/casaimoveischape1/public_html/banner_lista...") 50 <style><?php echo file_get_contents('css/slick.css');echo file_get_contents('css/filtros.css'); ?></style> 51 </head> 52 <body class="inicial filtros_fancy"> 53 <header> 54 <div id="topo"><?php include("topo.php"); ?></div> 55 <div id="banner"><?php include("banner_lista.php"); ?></div> 56 <div id="filtros"><?php include("filtros.php") ?></div> 57 <div><?php include("filtros_locacao.php") ?></div> 58 <div><?php include("filtros_venda.php") ?></div> 59 </header> 60 <section id="acesso_rapido"><?php include("acesso_rapido.php") ?></section> |
#12 |
+
–
/home/storage/7/f8/15/casaimoveischape1/public_html/RequestManager.php(121): require_once("/home/storage/7/f8/15/casaimoveischape1/public_html/inicial.php") 116 117 $this->setRoutes($routes); 118 $return = $this->defineRoute(); 119 120 if($return['status']){ 121 require_once($return['file']); 122 exit; 123 } 124 header('location: '.$this->getBaseUrl().DIRECTORY_SEPARATOR.$this->default_route); 125 exit; 126 } |
#13 |
+
–
/home/storage/7/f8/15/casaimoveischape1/public_html/index.php(39): RequestManager->run(array("/" => "inicial.php", "/sobre-nos" => "sobre-nos.php", "/alugue-um-imovel" => "locacao_page.php", "/locacao/(?P<locacao>\S+)/(?P<titulo>\S+)" => "locacaos_mostra.php", ...)) 34 // '/(?P<url>\S+)'=>'inicial.php', 35 ); 36 37 38 $request_manager = new RequestManager(); 39 $request_manager->run($rotas); 40 exit; |