PHP notice

Trying to get property of non-object

/home/diachilamd/domains/diachilamdep.net/public_html/frontend/protected/controllers/PropertyController.php(948)

936       $this->description = $model->noidung;
937     } else {
938       $this->description = $model->noidung;
939     }
940 
941     $this->pageTitle = $model->tieude;
942     $this->description = $model->noidung;
943     $domain = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]";
944     $this->image = $domain.$model->getImageUrl();
945     $this->imageAlt = $domain.$model->getImageUrl();
946     $this->url = $actual_link;
947     $propertyCategory = PropertyCategory::model()->findByPk($model->id_santhanhly);
948     $this->breadcrumbs = array($propertyCategory->title => $propertyCategory->getUrlDetail(), $model->tieude);
949     $user_id = $model->user_id;
950     if (user()->id)
951       $user_id = user()->id;
952     $this->render('view', compact(
953                     'model'
954     ));
955   }
956 
957   public function actionGetListCity() {
958     $country_name = app()->request->getParam('country_name');
959 
960     Country::GetCityListOption($country_name);

Stack Trace

#7
+
 /home/diachilamd/domains/diachilamdep.net/public_html/index.php(23): CApplication->run()
18 
19 require_once($yii);
20 require_once($global);
21 require_once($define);
22 
23 Yii::createWebApplication($config)->run();
2024-03-29 17:30:22 Apache/2 Yii Framework/1.1.13