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