PHP notice

Trying to get property of non-object

/home/quanansaig/domains/quanansaigon.com/public_html/frontend/protected/controllers/PropertyController.php(944)

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

Stack Trace

#7
+
 /home/quanansaig/domains/quanansaigon.com/public_html/index.php(22): CApplication->run()
17 
18 require_once($yii);
19 require_once($global);
20 require_once($define);
21 
22 Yii::createWebApplication($config)->run();
2024-03-28 23:46:52 Apache/2 Yii Framework/1.1.13