/**
  * Creates a new Employee model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate()
 {
     $model = new Employee();
     if ($model->load(Yii::$app->request->post()) && $model->save()) {
         return $this->redirect(['view', 'id' => $model->emp_id]);
     } else {
         return $this->render('create', ['model' => $model]);
     }
 }
 public function actionProd()
 {
     $employee = new Employee(['scenario' => 'create', 'fullname' => 'John Martin', 'username' => "johnm", 'email' => '*****@*****.**', 'phone' => '0986804874', 'password' => 'John1621993', 'confirm_password' => 'John1621993', 'gender' => Employee::MALE, 'created_by' => 0, 'updated_by' => 0, 'created_at' => time(), 'updated_at' => time()]);
     $employee->save();
     $auth = \Yii::$app->getAuthManager();
 }