Error

Call to a member function Get() on null

C:\www\special\mercedes_autoimport\protected\views\site\frontend\carhtml.php(2)

01 <?PHP
02         $this->pageTitle='Купить '.Yii::app()->params['brand']." ".$car->Get()." в ".Yii::app()->params['dealerP'];
03         Yii::app()->clientScript->registerMetaTag(
04             'Выберите себе новый автомобиль '.Yii::app()->params['brand']." ".$car->Get()." в ".Yii::app()->params['dealerP'].". ",
05             'description',
06             null,
07             array('id'=>'description','property'=>'og:description'),
08             'description'
09         );
10 
11         Yii::app()->clientScript->registerMetaTag(
12             Yii::app()->params['brand'].", ".$car->Get().", ".Yii::app()->params['brand']." ".$car->Get().", ".$car->Get().", Купить ".Yii::app()->params['brand']." ".$car->Get().", Купить ".$car->Get().", автомобили в наличи, ".$car->Get()." заказать в ".Yii::app()->params['dealerP'],
13             'keywords',
14             null,

Stack Trace

#4
+
 C:\www\special\mercedes_autoimport\protected\controllers\SiteController.php(977): CController->render()
972     public function actionAjxGetCar(){
973         Yii::import('application.modules.car.models.*');
974         if (!Yii::app()->getRequest()->getIsPostRequest() || !Yii::app()->getRequest()->getIsAjaxRequest()) {
975             $value=$_GET['_escaped_fragment_'];
976 
977             $this->render('frontend/carhtml',array('car'=>Cars::model()->findByPk($value)));
978             exit;
979         }
980 
981         if (($value = Yii::app()->getRequest()->getPost('value')) == null) {
982             throw new CHttpException(404);
#12
+
 C:\www\special\mercedes_autoimport\www\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();
2024-03-28 13:38:15 nginx/1.25.3 Yii Framework/1.1.15