Ejemplo n.º 1
0
 public function actionLogin()
 {
     $model = Yii::createObject(LoginForm::className());
     if ($model->load(Yii::$app->request->post()) && $model->login()) {
         return $this->goHome();
     }
     return $this->render('login', compact('model'));
 }