Application->getModule('auth'); $authModule->setReturnUrl($this->Request->RequestUri); $this->Response->redirect( $this->Service->ConstructUrl($authModule->LoginPage) ); } public function logoutUser($sender, $param) { $this->Application->getModule('auth')->logout(); $this->Response->redirect( $this->Service->ConstructUrl(NULL) ); } } ?>