diff options
author | xue <> | 2007-02-09 19:02:43 +0000 |
---|---|---|
committer | xue <> | 2007-02-09 19:02:43 +0000 |
commit | 8d156610be187427d43f4d033b258f060f8968ad (patch) | |
tree | a4aa2a899d47dec014bb61d307930fed579a75bb /demos/personal/protected/Common/MainMenu.php | |
parent | 08fab57660b3cac36630ca6e2c4f677d1d7f2655 (diff) |
reorganize personal demo.
Diffstat (limited to 'demos/personal/protected/Common/MainMenu.php')
-rw-r--r-- | demos/personal/protected/Common/MainMenu.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/demos/personal/protected/Common/MainMenu.php b/demos/personal/protected/Common/MainMenu.php new file mode 100644 index 00000000..a2334c03 --- /dev/null +++ b/demos/personal/protected/Common/MainMenu.php @@ -0,0 +1,12 @@ +<?php
+
+class MainMenu 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 |