CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1044] Access denied for user 'brdepylaction_yii'@'localhost' to database 'brdepyla_blog'

/home/brdepylaction/public_html/site/protected/components/widgets/OutdoorHome.php(30)

18             select
19                 *
20             from
21                 outdoors
22             where
23                 out_prioridade > 0
24                 and out_periodo_de <= NOW()
25                 AND NOW() <= out_periodo_ate
26 
27 
28             order by out_prioridade desc
29             ";
30         $query = Yii::app()->db->createCommand($sql);
31         $res = $query->queryAll();
32 
33         $this->render('outdoorHome',array(
34             'outdoors'=>$res
35         ));
36     }
37 
38 }
39 
40 ?>

Stack Trace

#4
+
 /home/brdepylaction/public_html/site/protected/components/widgets/OutdoorHome.php(30): CModule->__get("db")
25                 AND NOW() <= out_periodo_ate
26 
27 
28             order by out_prioridade desc
29             ";
30         $query = Yii::app()->db->createCommand($sql);
31         $res = $query->queryAll();
32 
33         $this->render('outdoorHome',array(
34             'outdoors'=>$res
35         ));
#6
+
 /home/brdepylaction/public_html/site/protected/views/site/index.php(10): CBaseController->widget("application.components.widgets.OutdoorHome", array())
05 ?>
06 
07 <?php
08     $this->widget('application.components.widgets.OutdoorHome',array(
09         //atributos configuráveis do outdoors aqui
10     ));
11 ?>
12 
13 <div class="blocos">
14     <div class="destaqueSite quatroBlocos">
15         <div class="destaque">
#11
+
 /home/brdepylaction/public_html/site/protected/controllers/SiteController.php(22): CController->render("index")
17     /**
18      * Acao principal
19      */
20     public function actionIndex()
21     {
22         $this->render('index');
23     }
24 
25     public function actionFacaParte() {
26 
27         $model = new CurriculoForm();
2018-11-17 00:13:45 Apache Yii Framework/1.1.13