summaryrefslogtreecommitdiff
path: root/demos/personal/protected/Pages/Layout.php
diff options
context:
space:
mode:
Diffstat (limited to 'demos/personal/protected/Pages/Layout.php')
-rw-r--r--demos/personal/protected/Pages/Layout.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/demos/personal/protected/Pages/Layout.php b/demos/personal/protected/Pages/Layout.php
index ba96038b..37ed95d4 100644
--- a/demos/personal/protected/Pages/Layout.php
+++ b/demos/personal/protected/Pages/Layout.php
@@ -2,6 +2,11 @@
class Layout extends TTemplateControl
{
+ public function logout($sender,$param)
+ {
+ $this->Application->getModule('auth')->logout();
+ $this->Response->redirect($this->Service->constructUrl('Home'));
+ }
}
?> \ No newline at end of file