config/config/DealerLimitsController.php
/**
     * Lists all DealerLimits models.
     * @return mixed
     */
Lists all DealerLimits models.
@return mixed
Lists all DealerLimits models . @return mixed
public function actionIndex()
    {
        $accses_model = new Access();
        $accses_info = $accses_model->GetAccsessToPage(Yii::$app->user->identity->login, "1");
        if (isset($accses_info[0]) && ($accses_info[0]["access_level"] == "C" || $accses_info[0]["access_level"] == "R")) {
            $searchModel = new DealerLimitsSearch();
            $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
            return $this->render('index', [
                'searchModel' => $searchModel,
                'dataProvider' => $dataProvider,
            ]);
        } else {
            return Yii::$app->response->redirect(['site/index']);
        }
    }
public function actionIndex ( ) { $ accses_model = new Access ( ) ; $ accses_info = $ accses_model -> GetAccsessToPage ( Yii :: $ app -> user -> identity -> login , " 1 " ) ; if ( isset ( $ accses_info [ 0 ] ) && ( $ accses_info [ 0 ] [ " access_level " ] == " C " || $ accses_info [ 0 ] [ " access_level " ] == " R " ) ) { $ searchModel = new DealerLimitsSearch ( ) ; $ dataProvider = $ searchModel -> search ( Yii :: $ app -> request -> queryParams ) ; return $ this -> render ( 'index' , [ 'searchModel' => $ searchModel , 'dataProvider' => $ dataProvider , ] ) ; } else { return Yii :: $ app -> response -> redirect ( [ 'site/index' ] ) ; } }
Lists all DealerLimits models.
Lists all DealerLimits models .