PHP Error

Trying to get property of non-object

/home/c/cb69283/public_html/themes/classic/frontend/views/modules/producers/default/view.php(1)

01 <? $this->pageTitle = Yii::t('app', 'Производители') . " - " . $model->title; ?>
02 <?php
03 $this->breadcrumbs=array(
04     Yii::t('app','Производители') => array('/producers/default/index'),
05     $model->title,
06 );
07 ?>
08 <div class="container">
09 
10     <h1><?= $model->title ?></h1>
11     <div class="clearfix"></div>
12     <?php $this->widget('pictures.components.PicturesEditor', array('model' => $model, 'mode' => 'FirstOnly', 'width' => 154,'imgClass'=>"img_l")); ?>
13     <?= $model->content ?>

Stack Trace

#4
+
 /home/c/cb69283/public_html/protected/modules/producers/controllers/DefaultController.php(70): CController->render("view", array("model" => null))
65                 }
66         $model = Manufacturers::model()->find($criteria);
67 
68         $this->render('view',array(
69             'model'=>$model,
70         ));
71     }
72 
73     /**
74      * Creates a new model.
75      * If creation is successful, the browser will be redirected to the 'view' page.
#19
+
 /home/c/cb69283/public_html/index.php(36): CApplication->run()
31         break;
32 }
33 ini_set('display_errors', 1);
34 ini_set('display_startup_errors', 1);
35 error_reporting(E_ALL);
36 Yii::createWebApplication($config)->run();
37 
38 
2024-03-28 15:31:23 Apache/2.4.29 Yii Framework/1.1.8