<?php Prado::using('Application.web.TemplateControl'); Prado::using('System.Web.UI.ActiveControls.TActiveLinkButton'); class HeaderMenu extends TemplateControl { public function loginUser($sender, $param) { $authModule = $this->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) ); } } ?>