PHP notice

Trying to get property of non-object

/home/idmibvoctest/public/protected/views/front/news/view.php(8)

01 <div class="container">
02     
03     <div class="row page">
04     
05         <div class="span8 content">
06             <h4>Haberler ve Duyurular</h4>
07             
08             <div id="haber<?php  echo $model->id_new;?>">
09                 <p>
10                     <strong><?php  echo $model->name;?></strong>
11                 </p>
12                 <p>
13                     <?php  echo $model->content;?>
14                 </p>
15                 <a style="float: right" href="<?php echo $this->createUrl('/news')?>">Tüm Haberler</a>
16                 <div style="clear: both"></div>
17 
18             </div>            
19             <?php 
20                 

Stack Trace

#4
+
 /home/idmibvoctest/public/protected/controllers/front/NewsController.php(30): CController->render("view", array("model" => null))
25     {
26         $model = News::model()->findByPk($id);
27         
28         $this->render('view', array(
29             'model' => $model,
30         )); 
31     }
32     
33 }
34 ?>
#14
+
 /home/idmibvoctest/public/protected/components/WebApplicationEndBehavior.php(26): CApplication->run()
21         // Attach the changeModulePaths event handler
22         // and raise it.
23         $this->onModuleCreate = array($this, 'changeModulePaths');
24         $this->onModuleCreate(new CEvent($this->owner));
25  
26         $this->owner->run(); // Run application.
27     }
28  
29     // This event should be raised when CWebApplication
30     // or CWebModule instances are being initialized.
31     public function onModuleCreate($event)
#17
+
 /home/idmibvoctest/public/index.php(19): CComponent->__call("runEnd", array("front"))
14 if(function_exists("date_default_timezone_set") and
15 function_exists("date_default_timezone_get"))
16 @date_default_timezone_set(@date_default_timezone_get());
17 
18 require_once($yii);
19 Yii::createWebApplication($config)->runEnd('front');
2024-03-28 12:48:01 Apache Yii Framework/1.1.13