Request['success'] === 'success') { $this->MV->setActiveView($this->SuccessPanel); } else { $this->MV->setActiveView($this->FormPanel); } } public function checkUsername($sender, $param) { $param->IsValid = $this->getFacade()->checkForUsername( $this->Login->SafeText ); } public function checkEMail($sender, $param) { $param->IsValid = $this->getFacade()->checkForEMail( $this->EMail->SafeText ); } public function registerUser($sender, $param) { if ($this->Page->IsValid) { $this->getFacade()->registerUser( $this->Login->SafeText, $this->Password->Text, $this->EMail->Text ); $this->Response->redirect( $this->Service->constructUrl( $this->Request->ServiceParameter, ['success' => 'success'] ) ); } } } ?>