PHP notice

Undefined offset: 0

/home/qualityequipment/public_html/protected/controllers/CategoryController.php(143)

131             ),
132             'pagination' => array(
133                 'pageSize' => 10,
134             ),
135         ));
136 
137         /*=========< Seo Contents >==========*/
138         $listcat = Category::model()->findAll('parent_id = 0 AND is_active = 1 ORDER BY weight');
139         $gallery = Gallery::model()->with('galleryImages')->findByPk(4);
140 
141         $this->render('show', array(
142                 'dataProvider' => $dataProvider,
143                 'currentCategory' => $current_category[0],
144                 'listcat' => $listcat,
145                 'current_category' => $current_category[0],
146                 'childrens' => $children,
147                 'gallery' => $gallery,
148                 'filters' => $filters,
149                 'child_cat' => $category_id
150             )
151         );
152     }
153 
154     /**
155      * Search functionality from top.

Stack Trace

#9
+
 /home/qualityequipment/public_html/index.php(10): CApplication->run()
05 // remove the following lines when in production mode
06 defined('YII_DEBUG') or define('YII_DEBUG',true);
07 // specify how many levels of call stack should be shown in each log message
08 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
09 require_once($yii);
10 Yii::createWebApplication($config)->run();
2024-03-28 10:23:57 Apache Yii Framework/1.1.12