From 4a9dd5c8513ed96d1e0cf43e370b170dc38fb502 Mon Sep 17 00:00:00 2001
From: xue <>
Date: Fri, 29 Jun 2007 17:41:20 +0000
Subject: finished blog-tutorial.
---
.../day5/blog/protected/layouts/MainLayout.php | 19 ++++++++++
.../day5/blog/protected/layouts/MainLayout.tpl | 43 ++++++++++++++++++++++
2 files changed, 62 insertions(+)
create mode 100644 demos/blog-tutorial/samples/day5/blog/protected/layouts/MainLayout.php
create mode 100644 demos/blog-tutorial/samples/day5/blog/protected/layouts/MainLayout.tpl
(limited to 'demos/blog-tutorial/samples/day5/blog/protected/layouts')
diff --git a/demos/blog-tutorial/samples/day5/blog/protected/layouts/MainLayout.php b/demos/blog-tutorial/samples/day5/blog/protected/layouts/MainLayout.php
new file mode 100644
index 00000000..46c1483d
--- /dev/null
+++ b/demos/blog-tutorial/samples/day5/blog/protected/layouts/MainLayout.php
@@ -0,0 +1,19 @@
+Application->getModule('auth')->logout();
+ $url=$this->Service->constructUrl($this->Service->DefaultPage);
+ $this->Response->redirect($url);
+ }
+}
+
+?>
\ No newline at end of file
diff --git a/demos/blog-tutorial/samples/day5/blog/protected/layouts/MainLayout.tpl b/demos/blog-tutorial/samples/day5/blog/protected/layouts/MainLayout.tpl
new file mode 100644
index 00000000..34723f77
--- /dev/null
+++ b/demos/blog-tutorial/samples/day5/blog/protected/layouts/MainLayout.tpl
@@ -0,0 +1,43 @@
+
+