CException

La proprietà "SiteController"."data" non è definita.

/giornale/protected/controllers/SiteController.php(208)

196     /**
197      * Ultimo Numero
198      */
199     private function Numero($idp, $index = true) {
200         $ultimo_numero = Pagine::model()->findByPk($idp);
201 
202         if (!$index) {
203             if ($ultimo_numero->idp !== $this->pagina->root)
204                 $ultimo_numero = Pagine::model()->findByPk($this->pagina->root);
205         }
206 
207         if ($ultimo_numero != null) {
208             $this->model['data'] = date('d F Y', $this->data);
209             $this->model['data'] = $this->DataItaliana($this->model['data']);
210             $this->model['sommario'] = $ultimo_numero->{$this->lingua . '_titolo'};
211             $this->model['articoli'] = Pagine::model()->getLivelloRoot(2, $ultimo_numero->idp, 'ASC')->findAll();
212             foreach ($this->model['articoli'] as $key => $value)
213                 $this->model[$value->idp . '_img'] = Immagini::model()->getImmagini($value->idp)->find();
214         }
215     }
216 
217     /**
218      * Banner
219      */
220     private function Banner() {

Stack Trace

#0
+
 /giornale/protected/controllers/SiteController.php(208): CComponent->__get("data")
203             if ($ultimo_numero->idp !== $this->pagina->root)
204                 $ultimo_numero = Pagine::model()->findByPk($this->pagina->root);
205         }
206 
207         if ($ultimo_numero != null) {
208             $this->model['data'] = date('d F Y', $this->data);
209             $this->model['data'] = $this->DataItaliana($this->model['data']);
210             $this->model['sommario'] = $ultimo_numero->{$this->lingua . '_titolo'};
211             $this->model['articoli'] = Pagine::model()->getLivelloRoot(2, $ultimo_numero->idp, 'ASC')->findAll();
212             foreach ($this->model['articoli'] as $key => $value)
213                 $this->model[$value->idp . '_img'] = Immagini::model()->getImmagini($value->idp)->find();
#1
+
 /giornale/protected/controllers/SiteController.php(123): SiteController->Numero("161")
118                             $this->model['pagine'] = Pagine::model()->getLivelloRoot(1, $this->pagina->idp)->findAll();
119                         }
120                         $this->Banner();
121                         break;
122                     case "giornale":
123                         $this->Numero($this->pagina->idp);
124                         $this->Banner();
125                         $this->Mailinglist();
126                         break;
127                 }
128 
#11
+
 /giornale/index.php(17): CApplication->run()
12 defined('YII_DEBUG') or define('YII_DEBUG', true);
13 // specify how many levels of call stack should be shown in each log message
14 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
15 
16 require_once($yii);
17 Yii::createWebApplication($config)->run();
2024-03-28 14:21:59 Apache Yii Framework/1.1.14