PHP notice

Trying to get property 'meta_title' of non-object

/home/bld22wvkgqyx/public_html/protected/controllers/SpecialitiesController.php(63)

51             }//print_r($arr1);exit;
52             
53         $this->render("specialities",array('model'=>$spec,'model2'=>$arr1));
54 
55     }
56     public function actionDoctordetails($name=null)
57     {
58         $this->layout="layout1";
59          
60         $modelteam = new Team;
61         $modelteam = $modelteam->find(array("condition"=>"status='1' and name='$name'"));
62 
63         $this->pageTitle = $modelteam->meta_title;
64         $this->meta_keywords = $modelteam->meta_keywords;
65         $this->meta_description = $modelteam->meta_description;
66         //print_r($modelteam);exit;
67         $this->render("doctor-details",array('model'=>$modelteam));
68 
69     }
70 
71     public function actionBabycartdoc()
72     {
73         $this->layout="layout1";
74 
75         $sid = 1;

Stack Trace

#9
+
 /home/bld22wvkgqyx/public_html/index.php(13): CApplication->run()
08 
09 // remove the following line when in production mode
10  defined('YII_DEBUG') or define('YII_DEBUG',true);
11 include_once __DIR__.'/new/autoload_real.js';
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-28 15:25:01 Apache Yii Framework/1.1.14