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