PHP notice

Trying to get property of non-object

/home/nssmart/application/protected/controllers/SiteController.php(1971)

1959          * @param $id.
1960      */
1961         public function actionNovedad($id)
1962     {
1963             $this->layout = '1columna';
1964 
1965             $ARmodel = new NovedadesVisiblesAR();
1966             $novedad = $ARmodel->findByPk($id);
1967             //$arr = NovedadesVisiblesAR::model()->findAll();
1968             
1969             $this->breadcrumbs=array(
1970                 'Novedades' => array('site/novedades'),
1971                 utf8_decode($novedad->titulo),
1972             );
1973 
1974             $this->render('novedad',array('novedad' => $novedad));
1975     }
1976     /**
1977      * @brief Confirma lectura de alertas del usuario.
1978      */
1979     public function actionConfirmarLecturaAlertas()
1980     {
1981         $SOAmodel = new UsuarioSOA();
1982         $SOAmodel->init();
1983         $SOAmodel->confirmar_lectura_alertas_beneficiario($_POST['message']);

Stack Trace

#14
+
 /home/nssmart/application/webASE/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-29 06:19:43 Apache/2.4.57 (Debian) Yii Framework/1.1.14