/** * Lists all User models. * @return mixed */ public function actionIndex() { $searchModel = new UserSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); $arrayStatus = User::getArrayStatus(); $arrayRole = User::getArrayRole(); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'arrayStatus' => $arrayStatus, 'arrayRole' => $arrayRole]); }
?> <?php echo $form->field($model, 'password')->passwordInput(['maxlength' => 255]); ?> <?php echo $form->field($model, 'repassword')->passwordInput(['maxlength' => 255]); ?> <?php echo $form->field($model, 'email')->textInput(['maxlength' => 255]); ?> <?php echo $form->field($model, 'role')->dropDownList(User::getArrayRole()); ?> <?php echo $form->field($model, 'status')->dropDownList(User::getArrayStatus()); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?>