Error

Call to a member function getImagenes() on null

/home/tigerovi/public_html/protected/controllers/front/SiteController.php(716)

704             elseif ($order == 'shows')
705                 $params['order'] = 't.agotado asc, t.id desc';
706             else
707                 $params['order'] = 't.id desc';
708         }
709 
710         return CMSClass::getContenidos($params);
711     }
712 
713     public function actionViaje($id) {
714         $model = CMSClass::getContenido($id);
715         $destino = $model->destinos;
716         $ficha = $model->getImagenes('P');
717 
718         //'.$destino[0]->getText('titulo', Yii::app()->language, true).' - 
719         //Armamos og tags y metatags:
720         Yii::app()->params['page_title'] = 'Tigero Viajes - ' . $model->getText('titulo', Yii::app()->language, true) . (!empty($destino[0]) ? ' en ' . $destino[0]->getText('titulo', Yii::app()->language, true) : '');
721         Yii::app()->params['page_description'] = $model->getText('copete', Yii::app()->language, true);
722         Yii::app()->params['page_keywords'] = $model->keywords;
723 
724         $images = $model->getImagenes();
725         Yii::app()->params['og_fb_image'] = 'http://' . $_SERVER['HTTP_HOST'] . Yii::app()->baseUrl . "/upload/" . $images[0]->archivo;
726 
727         $this->render('viaje', array('model' => $model, 'ficha' => $ficha, 'destino' => $destino));
728     }

Stack Trace

#9
+
 /home/tigerovi/public_html/protected/components/WebApplicationEndBehavior.php(24): CApplication->run()
19         // Attach the changeModulePaths event handler
20         // and raise it.
21         $this->onModuleCreate = array($this, 'changeModulePaths');
22         $this->onModuleCreate(new CEvent($this->owner));
23 
24         $this->owner->run(); // Run application.
25     }
26 
27     // This event should be raised when CWebApplication
28     // or CWebModule instances are being initialized.
29     public function onModuleCreate($event) {
#11
+
 /home/tigerovi/public_html/index.php(15): CComponent->__call("runEnd", array("front"))
10 defined('YII_DEBUG') or define('YII_DEBUG', true);
11 // specify how many levels of call stack should be shown in each log message
12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
13 
14 require_once($yii);
15 Yii::createWebApplication($config)->runEnd('front');
2024-03-28 18:37:04 Apache Yii Framework/1.1.12