userModel = new UserModel(); $this->view = $view; } public function loginUser() { var_dump($_POST); echo $_POST["username"]; // on fail $this->view->setDoMethodName("showUserLoginForm"); $this->showUserLoginForm(); } public function showUserLoginForm() { } }