PHP notice

Trying to get property 'id' of non-object

/home/u480280474/domains/whytaltech.com/public_html/protected/views/links/links.php(28)

16     {
17         echo "<div class='row no-sect'><div class='col-xs-12'><p><b>This page is work in progress. shall update soon...</b></p></div></div>" ; 
18     }    
19     ?>    
20 <?
21 }
22 else 
23 {
24       echo "<div class='row no-sect'><div class='col-xs-12'><p><b>This page is work in progress. shall update soon...</b></p></div></div>" ; 
25 }
26 
27 
28 if($links->id == 2) // about
29 {
30 
31     ?>
32 
33         <section class="abt2 wow animate fadeInUp" data-wow-duration="1.8s" data-wow-delay="0s">
34             <div class="container">
35                 <div class="row">
36                 <?php
37                   $m_count = new Counter;
38                   $m_count = $m_count->findAll(array("condition"=>"status='1'"));
39 
40                   if(!empty($m_count))

Stack Trace

#4
+
 /home/u480280474/domains/whytaltech.com/public_html/protected/controllers/LinksController.php(40): CController->render("links", array("links" => null))
35         $this->meta_keywords = $links['meta_keywords'];
36         $this->meta_description = $links['meta_description'];
37         
38         //print_r($links);exit;
39         
40         $this->render("links", array("links"=>$links) );
41     }
42     public function actionSearch()
43     {
44         $model = new HomeLinks;
45         $articles = new Articles;
#12
+
 /home/u480280474/domains/whytaltech.com/public_html/index.php(11): CApplication->run()
06 
07 // remove the following line when in production mode
08  defined('YII_DEBUG') or define('YII_DEBUG',true);
09 
10 require_once($yii);
11 Yii::createWebApplication($config)->run();
12 
13 
14 ?>
2024-03-28 18:37:12 LiteSpeed Yii Framework/1.1.14