/** * Handle user input */ public function listen() { $this->settingsView->setUserInfo(); if ($this->settingsView->saveButtonPost()) { $name = $this->settingsView->getName(); $contact = $this->settingsView->getContact(); $this->settingsModel->updateUserProfile($name, $contact); $this->renderProfileViewVar = true; } else { $this->renderProfileViewVar = false; } }