modules/admin/controllers/ProductCategoryController.php
/**
     * Lists all ProductCategory models.
     * @return mixed
     */
Lists all ProductCategory models.
@return mixed
Lists all ProductCategory models . @return mixed
public function actionIndex()
    {
        $searchModel = new ProductCategorySearch();
        $parent_category = ProductCategory::find()->where(['parent_category_id' => null])->all();
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
        return $this->render('index', [
            'searchModel' => $searchModel,
            'dataProvider' => $dataProvider,
            'parent_category' => $parent_category,
        ]);
    }
public function actionIndex ( ) { $ searchModel = new ProductCategorySearch ( ) ; $ parent_category = ProductCategory :: find ( ) -> where ( [ 'parent_category_id' => null ] ) -> all ( ) ; $ dataProvider = $ searchModel -> search ( Yii :: $ app -> request -> queryParams ) ; return $ this -> render ( 'index' , [ 'searchModel' => $ searchModel , 'dataProvider' => $ dataProvider , 'parent_category' => $ parent_category , ] ) ; }
Lists all ProductCategory models.
Lists all ProductCategory models .