/**
  * Creates a new Accounts model.
  * If creation is successful, the browser will be redirected to the 'index' page.
  * @return mixed
  */
 public function actionNew()
 {
     $model = new Accounts();
     if ($model->load(Yii::$app->request->post()) && $model->save()) {
         return $this->redirect(['index']);
     } else {
         return $this->render('new', ['model' => $model]);
     }
 }