/home/qualitti/public_html/extranet/yii/db/CDbCommand.php(541)
529 { 530 if($this->_connection->enableProfiling) 531 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 532 533 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 534 $message=$e->getMessage(); 535 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 536 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 537 538 if(YII_DEBUG) 539 $message.='. The SQL statement executed was: '.$this->getText().$par; 540 541 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 542 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 543 } 544 } 545 546 /** 547 * Builds a SQL SELECT statement from the given query specification. 548 * @param array $query the query specification in name-value pairs. The following 549 * query options are supported: {@link select}, {@link distinct}, {@link from}, 550 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 551 * {@link limit}, {@link offset} and {@link union}. 552 * @return string the SQL statement 553 * @since 1.1.6
#0 |
+
–
/home/qualitti/public_html/extranet/yii/db/CDbCommand.php(414): CDbCommand->queryInternal("fetch", array(2), array()) 409 * @return mixed the first row (in terms of an array) of the query result, false if no result. 410 * @throws CException execution failed 411 */ 412 public function queryRow($fetchAssociative=true,$params=array()) 413 { 414 return $this->queryInternal('fetch',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 415 } 416 417 /** 418 * Executes the SQL statement and returns the value of the first column in the first row of data. 419 * This is a convenient method of {@link query} when only a single scalar |
#1 |
+
–
/home/qualitti/public_html/extranet/yii/db/ar/CActiveRecord.php(1297): CDbCommand->queryRow() 1292 if(empty($criteria->with)) 1293 { 1294 if(!$all) 1295 $criteria->limit=1; 1296 $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria); 1297 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1298 } 1299 else 1300 { 1301 $finder=new CActiveFinder($this,$criteria->with); 1302 return $finder->query($criteria,$all); |
#2 |
+
–
/home/qualitti/public_html/extranet/yii/db/ar/CActiveRecord.php(1402): CActiveRecord->query(CDbCriteria) 1397 */ 1398 public function find($condition='',$params=array()) 1399 { 1400 Yii::trace(get_class($this).'.find()','system.db.ar.CActiveRecord'); 1401 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1402 return $this->query($criteria); 1403 } 1404 1405 /** 1406 * Finds all active records satisfying the specified condition. 1407 * See {@link find()} for detailed explanation about $condition and $params. |
#3 |
+
–
/home/qualitti/public_html/receitas.php(32): CActiveRecord->find(CDbCriteria) 27 $c_banner->addCondition("habilitar = 1"); 28 $c_banner->addCondition("local='receitas'"); 29 $c_banner->addCondition("data_entrada <= '" . $data_atual . "'"); 30 $c_banner->addCondition("data_saida IS NULL OR data_saida = '' OR data_saida = '0000-00-00 00:00:00' OR data_saida >= '" . $data_atual . "'"); 31 $c_banner->order = "data desc"; 32 $banner = Banner::model()->find($c_banner); 33 $img = 'img/receitas-v2.jpg'; 34 if(is_file('extranet/uploads/Banner/'.$banner->imagem)){ 35 $img = 'extranet/uploads/Banner/'.$banner->imagem; 36 } 37 ?> |
#4 |
+
–
/home/qualitti/public_html/RequestManager.php(171): require_once("/home/qualitti/public_html/receitas.php") 166 Utf8::encode($html); 167 echo $html; 168 exit; 169 } 170 171 require_once($require_file); 172 exit; 173 174 } 175 176 } |
#5 |
+
–
/home/qualitti/public_html/index.php(44): RequestManager->run(array("/" => "inicial.php", "/index" => "inicial.php", "/inicial" => "inicial.php", "/sobre" => "sobre.php", ...)) 39 40 '/contato'=>'contato_form.php', 41 '/contato/(?P<sucesso>\w+)'=>'contato_form.php', 42 '/pagina/(?P<id>\d+)'=>'pagina.php', 43 ); 44 $request_manager->run($rotas); 45 ?> |