PHP notice

Trying to get property 'name' of non-object

/var/www/reestrtim/protected/views/site/view-tabs/manufacturer.php(5)

01 <?php
02 /* @var $this SiteController */
03 /* @var $manufacturers Members */
04 
05     $this->pageTitle = $manufacturers->name;
06 
07 ?>
08 
09 <form>
10     <h4><?=$manufacturers->name?></h4>
11 <div>
12    <div class="span6">
13         <?php $this->widget('bootstrap.widgets.TbDetailView',array(
14             'data'=>$manufacturers,
15     'htmlOptions' => array('style' => 'width: 100%'),
16     'attributes'=>array(
17         array(

Stack Trace

#3
+
 /var/www/reestrtim/protected/views/site/view.php(56): CController->renderPartial("view-tabs/manufacturer", array("model" => Materials, "manufacturers" => null), true, false)
51             'content'=>$this->renderPartial('view-tabs/common', $dataView, true, false),
52             'active'=>true
53         ),
54         array(
55             'label'=>'Производитель',
56             'content'=>$this->renderPartial('view-tabs/manufacturer', $dataView, true, false),
57         ),
58         array(
59             'label'=>'Документация',
60             'content'=>$this->renderPartial('view-tabs/right', $dataView, true, false),
61         ),
#8
+
 /var/www/reestrtim/protected/controllers/SiteController.php(197): CController->render("view", array("model" => Materials, "manufacturers" => null))
192         $model= Materials::model()->findByAttributes(array('id'=>$id));
193         $manufacturers = Manufacturers::model()->findByAttributes(array('name'=>$model->product_man_ru));
194 
195         $this->render('view',array(
196             'model'=>$model,
197             'manufacturers'=>$manufacturers,
198         ));
199     }
200 
201     public function actionViewpdf($id)
202     {
#18
+
 /var/www/reestrtim/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
14 ?>
2024-03-28 19:24:47 Apache/2.4.41 (Ubuntu) Yii Framework/1.1.13