userModel = new UserModel(); $this->view = $view; } public function loginUser() { $erg = array(); $erg = $this->userModel->verifyLogin($_POST["username"], $_POST["password"]); if ($erg["success"] == true) { echo "success"; } else { $this->view->setDoMethodName("showUserLoginForm"); $this->view->setVars([ "errmsg" => $erg["message"] ]); $this->showUserLoginForm(); } } public function showUserLoginForm() { } }