/home4/siilhalal/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 |
+
–
/home4/siilhalal/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 |
+
–
/home4/siilhalal/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 |
+
–
/home4/siilhalal/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 |
+
–
/home4/siilhalal/public_html/extranet/yii/base/CApplication.php(438): CModule->getComponent("db") 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 |
+
–
/home4/siilhalal/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 |
+
–
/home4/siilhalal/public_html/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 |
+
–
/home4/siilhalal/public_html/extranet/yii/db/ar/CActiveRecord.php(387): CActiveRecordMetaData->__construct(Noticia) 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 |
+
–
/home4/siilhalal/public_html/extranet/yii/web/CActiveDataProvider.php(74): CActiveRecord::model("Noticia") 69 public function __construct($modelClass,$config=array()) 70 { 71 if(is_string($modelClass)) 72 { 73 $this->modelClass=$modelClass; 74 $this->model=CActiveRecord::model($this->modelClass); 75 } 76 elseif($modelClass instanceof CActiveRecord) 77 { 78 $this->modelClass=get_class($modelClass); 79 $this->model=$modelClass; |
#8 |
+
–
/home4/siilhalal/public_html/br/noticias_page.php(12): CActiveDataProvider->__construct("Noticia", array("criteria" => CDbCriteria, "pagination" => array("route" => "noticias?", "pageSize" => 10, "pageVar" => "page"))) 07 $_GET['pagina'] = is_numeric( $_GET['pagina']) ? $_GET['pagina'] + 1 : 0; 08 $criteria = new CDbCriteria(); 09 $criteria->order = 'idnoticia desc'; 10 $criteria->addCondition( "ativo = 1" ); 11 $data_provider = new CActiveDataProvider( 'Noticia', array( 12 'criteria' => $criteria, 13 'pagination' => array( 14 'route' => 'noticias?', 15 'pageSize' => 10, 16 'pageVar' => 'page', 17 ), |
#9 |
+
–
/home4/siilhalal/public_html/br/RequestManager.php(159): require_once("/home4/siilhalal/public_html/br/noticias_page.php") 154 Utf8::encode($html); 155 echo $html; 156 exit; 157 } 158 159 require_once($require_file); 160 exit; 161 } 162 } 163 ?> |
#10 |
+
–
/home4/siilhalal/public_html/br/index.php(39): RequestManager->run(array("/empresa" => "empresa.php", "/imparcialidade" => "imparcialidade.php", "/certificadas" => "empresas-certificadas.php", "/certificacao" => "certificacao.php", ...)) 34 '/inicial/(?P<acesso>\w+)'=>'inicial.php', 35 '/index'=>'inicial.php', 36 '/inicial'=>'inicial.php', 37 ); 38 $request_manager = new RequestManager(); 39 $request_manager->run($rotas); 40 exit; |