Error

Call to a member function Get() on null

C:\www\special\mbr.mrtruman.ru\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\mbr.mrtruman.ru\protected\controllers\SiteController.php(1021): CController->render()
1016     public function actionAjxGetCar(){
1017         Yii::import('application.modules.car.models.*');
1018         if (!Yii::app()->getRequest()->getIsPostRequest() || !Yii::app()->getRequest()->getIsAjaxRequest()) {
1019             $value=$_GET['_escaped_fragment_'];
1020 
1021             $this->render('frontend/carhtml',array('car'=>Cars::model()->findByPk($value)));
1022             exit;
1023         }
1024 
1025         if (($value = Yii::app()->getRequest()->getPost('value')) == null) {
1026             throw new CHttpException(404);
#12
+
 C:\www\special\mbr.mrtruman.ru\public\index.php(10): CApplication->run()
05 
06 // remove the following line when in production mode
07  defined('YII_DEBUG') or define('YII_DEBUG',true);
08 
09 require_once($yii);
10 Yii::createWebApplication($config)->run();
2024-03-19 14:26:29 nginx/1.25.3 Yii Framework/1.1.15