modules/admin/controllers/ColorController.php
/**
     * Lists all Color models.
     * @return mixed
     */
Lists all Color models.
@return mixed
Lists all Color models . @return mixed
public function actionIndex()
    {
        $searchModel = new ColorSearch();
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
        $modelColor = new Color();
        $arrStatus = $modelColor->arrStatus;
        return $this->render('index', [
            'searchModel' => $searchModel,
            'dataProvider' => $dataProvider,
            'arrStatus' => $arrStatus,
        ]);
    }
public function actionIndex ( ) { $ searchModel = new ColorSearch ( ) ; $ dataProvider = $ searchModel -> search ( Yii :: $ app -> request -> queryParams ) ; $ modelColor = new Color ( ) ; $ arrStatus = $ modelColor -> arrStatus ; return $ this -> render ( 'index' , [ 'searchModel' => $ searchModel , 'dataProvider' => $ dataProvider , 'arrStatus' => $ arrStatus , ] ) ; }
Lists all Color models.
Lists all Color models .