PHP notice

Trying to get property of non-object

/home/morp2xzk6idf/public_html/protected/views/home/coursetec.php(8)

01 
02 
03 
04 
05 
06 <section class="inner to-all-new margin-center col-lg-12 col-md-12 col-sm-12 col-xs-12">
07                 <section id="introduction" class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
08                     <h1><?php echo $details->title ?></h1>
09                     <div>
10                         
11                         
12                         
13                     <?php  
14 
15 
16                             if (!empty($details->view)) {
17                             
18                             
19                             echo '<img  src="http://powercts.com/uploads/' .$details->image. '" class="img-responsive">';
20                             }else {

Stack Trace

#4
+
 /home/morp2xzk6idf/public_html/protected/controllers/HomeController.php(172): CController->render("coursetec", array("details" => null))
167      
168     $this->render('coursetec',array(
169                                 
170                                 'details'=>$details,
171  
172                                 ));
173 }
174 
175 
176 
177 
#19
+
 /home/morp2xzk6idf/public_html/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-28 22:57:04 Apache Yii Framework/1.1.14