PHP notice

Trying to get property of non-object

/home/dhgufb2rnnhw/public_html/hosting/itco-lb.com/protected/views/news/details.php(11)

01 <script type="text/javascript">
02         var menuindex = 4;
03     </script>
04 <div class="banner">
05         <img id="overlayimg" src="<?php echo Yii::app()->request->baseUrl;?>/images/about.jpg">
06         <div class="about-overlay"></div>
07         <div class="inner-content">
08             <div class="news">
09                 <a class="back" href="<?php echo Yii::app()->createUrl('news/index', array('lang'=>'en'));?>">back</a> 
10                 <div class="separator"></div>
11                 <p class="date"><?php echo $model->date;?></p>
12                 <div class="info left">
13                     <p><span><?php echo $model->title;?></span></p>
14                 
15                 <?php echo $model->content;?>
16                 </div>
17                 <div class="pdf-download right">
18                     
19                     <!--
20                     <a class="download right" href="javascript:;">Download PDF</a>
21                     -->
22                 </div>
23             </div>

Stack Trace

#4
+
 /home/dhgufb2rnnhw/public_html/hosting/itco-lb.com/protected/controllers/NewsController.php(85): CController->render("details", array("model" => null))
80                                     'params'=>array(':base_id'=>$base_id,':language'=>Yii::app()->language)));
81         
82         
83         $this->render('details',array(
84             'model'=>$model,
85         ));
86     }
87 
88     /**
89      * Creates a new model.
90      * If creation is successful, the browser will be redirected to the 'view' page.
#19
+
 /home/dhgufb2rnnhw/public_html/hosting/itco-lb.com/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 09:23:52 Apache Yii Framework/1.1.14