public function handleInput() { $this->checkView(); if ($this->navigationView->inRegistration()) { $rm = new \model\RegisterModel(); $rv = new \view\RegisterView($rm); $rc = new \controller\RegisterController($rm, $rv); $rc->doControl(); if ($rv->getRegisterSucceeded()) { $uc = $rv->getCredentials(); $this->LoginViewSetup(TRUE, $uc->getName()); } else { $this->view = $rc->getView(); } } else { $empty = ""; $this->LoginViewSetup(FALSE, $empty); } }