PHP notice

Trying to get property of non-object

/home/a0009865/domains/a0009865.xsph.ru/public_html/protected/controllers/CatalogController.php(230)

218         $obj['folder'] = $this->getFolderChild($id);
219         $obj['breadcrumb'] = $this->getBreadcrumb($id,$obj['pathfolder']);
220 
221         $equipment  = Equipment::model()->findAll( $this->getCriteria($id) );
222         $obj['list'] = $equipment;
223 
224         $this->render( 'catalog', array( 'obj' => $obj ));
225     }
226 
227     public function actionEquipmentItem( $id ) {
228         $item = Equipment::model()->findByPk( $id );
229 
230         $obj['title'] = $item->title;
231         $obj['template'] = "item";
232         $obj['item'] = $item;
233         $obj['breadcrumb'] = $this->getBreadcrumb($item->folder_id,'kuhonnaya-tehnika/');
234         array_push($obj['breadcrumb'], array('path' => '','title' => $item->title));
235 
236         $this->render( 'catalog', array( 'obj' => $obj ));
237     }
238 
239     public function actionShkafy($id) {
240         $obj['title'] = "Шкафы";
241         $obj['template'] = "list";
242         $obj['idMenu'] = 7;

Stack Trace

#9
+
 /home/a0009865/domains/a0009865.xsph.ru/public_html/index.php(15): CApplication->run()
10 // remove the following line when in production mode
11 // defined('YII_DEBUG') or define('YII_DEBUG',true);
12 define( 'YII_DEBUG', true );
13 date_default_timezone_set( 'Europe/Moscow' );
14 require_once( $yii );
15 Yii::createWebApplication( $config )->run();
2024-03-28 16:03:46 Apache/2.4.6 Yii Framework/1.1.14