/home/defaultwebsite/public/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/defaultwebsite/public/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/defaultwebsite/public/extranet/yii/db/CDbConnection.php(308): CDbConnection->setActive() 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/defaultwebsite/public/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/defaultwebsite/public/extranet/yii/base/CApplication.php(438): CModule->getComponent() 433 * Returns the database connection component. 434 * @return CDbConnection the database connection 435 */ 436 public function getDb() 437 { 438 return $this->getComponent('db'); 439 } 440 441 /** 442 * Returns the error handler component. 443 * @return CErrorHandler the error handler application component. |
| #4 |
+
–
/home/defaultwebsite/public/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/defaultwebsite/public/extranet/yii/db/ar/CActiveRecord.php(2309): CActiveRecord->getDbConnection() 2304 public function __construct($model) 2305 { 2306 $this->_model=$model; 2307 2308 $tableName=$model->tableName(); 2309 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2310 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2311 array('{class}'=>get_class($model),'{table}'=>$tableName))); 2312 if($table->primaryKey===null) 2313 { 2314 $table->primaryKey=$model->primaryKey(); |
| #6 |
+
–
/home/defaultwebsite/public/extranet/yii/db/ar/CActiveRecord.php(387): CActiveRecordMetaData->__construct() 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/defaultwebsite/public/extranet/protected/extensions/giix-components/GxActiveRecord.php(27): CActiveRecord::model() 22 */ 23 public static $pkSeparator = '-'; 24 public $beforeSaveExecuted = 0; 25 26 public static function model($className=__CLASS__) { 27 return parent::model($className); 28 } 29 30 public function afterFind(){ 31 return parent::afterFind(); 32 } |
| #8 |
+
–
/home/defaultwebsite/public/extranet/protected/models/_base/BasePatrocinadorCategoria.php(25): GxActiveRecord::model() 20 abstract class BasePatrocinadorCategoria extends GxActiveRecord { 21 22 23 24 public static function model($className=__CLASS__) { 25 return parent::model($className); 26 } 27 28 public function tableName() { 29 return 'patrocinador_categoria'; 30 } |
| #9 |
+
–
/home/defaultwebsite/public/extranet/protected/models/PatrocinadorCategoria.php(8): BasePatrocinadorCategoria::model() 03 Yii::import('application.models._base.BasePatrocinadorCategoria'); 04 05 class PatrocinadorCategoria extends BasePatrocinadorCategoria 06 { 07 public static function model($className=__CLASS__) { 08 return parent::model($className); 09 } 10 11 12 public function init(){ 13 |
| #10 |
+
–
/home/defaultwebsite/public/bloco-patrocinadores.php(8): PatrocinadorCategoria::model() 03 $criteria->with = ['patrocinadorMarcas']; 04 $criteria->together = true; 05 $criteria->addCondition("t.habilitar = '1'"); 06 $criteria->addCondition("patrocinadorMarcas.habilitar = '1'"); 07 $criteria->order = 't.posicao asc, patrocinadorMarcas.posicao asc'; 08 $patrocinios = PatrocinadorCategoria::model()->findAll($criteria); 09 if ($patrocinios) { 10 ?> 11 <section class="bloco-patrocinadores"> 12 <div class="container"> 13 <?php |
| #11 |
+
–
/home/defaultwebsite/public/rodape.php(1): include("/home/defaultwebsite/public/bloco-patrocinadores.php") 1 <?php include("bloco-patrocinadores.php"); ?> 2 <?php //include("cookies.php"); ?> 3 4 <footer id="footer"> 5 <div class="container"> 6 <div class="row"> |
| #12 |
+
–
/home/defaultwebsite/public/404.php(22): include("/home/defaultwebsite/public/rodape.php") 17 <span><b>404</b></span> 18 <h1><b>Página não encontrada</b></h1> 19 <a href="./"><i class="fas fa-arrow-left"></i> Voltar para a página inicial</a> 20 </div> 21 </main> 22 <?php include("rodape.php"); ?> 23 <?php include("scripts.php"); ?> 24 <script type="module" src="./js/init-modules.min.js?v=<?=$JSModulesVersion?>"></script> 25 <script type="text/javascript" src="./js/init.min.js?v=<?=$JSversion?>"></script> 26 </body> 27 </html> |
| #13 |
+
–
/home/defaultwebsite/public/RequestManager.php(172): require_once("/home/defaultwebsite/public/404.php") 167 Utf8::encode($html); 168 echo $html; 169 exit; 170 } 171 172 require_once($require_file); 173 exit; 174 175 } 176 177 } |
| #14 |
+
–
/home/defaultwebsite/public/index.php(61): RequestManager->run() 56 } 57 } 58 $request_manager->globals = $array_globals; 59 60 61 $request_manager->run($rotas); 62 ?> |