summaryrefslogtreecommitdiff
path: root/demos/blog-tutorial/samples/day2/blog/protected/layouts
diff options
context:
space:
mode:
authorxue <>2007-04-06 03:06:36 +0000
committerxue <>2007-04-06 03:06:36 +0000
commit05c6a7a2ef0d6be3a02b8e1a3e2bd2b6afacf799 (patch)
treeee00c40f3be3b9de95d139ccfb51330ffbfea05b /demos/blog-tutorial/samples/day2/blog/protected/layouts
parent16bbf435c8048c3c726de78adc8a670b8a527229 (diff)
Finished blog tutorial day 2.
Diffstat (limited to 'demos/blog-tutorial/samples/day2/blog/protected/layouts')
-rw-r--r--demos/blog-tutorial/samples/day2/blog/protected/layouts/MainLayout.php7
-rw-r--r--demos/blog-tutorial/samples/day2/blog/protected/layouts/MainLayout.tpl20
2 files changed, 27 insertions, 0 deletions
diff --git a/demos/blog-tutorial/samples/day2/blog/protected/layouts/MainLayout.php b/demos/blog-tutorial/samples/day2/blog/protected/layouts/MainLayout.php
new file mode 100644
index 00000000..253d6c03
--- /dev/null
+++ b/demos/blog-tutorial/samples/day2/blog/protected/layouts/MainLayout.php
@@ -0,0 +1,7 @@
+<?php
+
+class MainLayout extends TTemplateControl
+{
+}
+
+?> \ No newline at end of file
diff --git a/demos/blog-tutorial/samples/day2/blog/protected/layouts/MainLayout.tpl b/demos/blog-tutorial/samples/day2/blog/protected/layouts/MainLayout.tpl
new file mode 100644
index 00000000..5218b98d
--- /dev/null
+++ b/demos/blog-tutorial/samples/day2/blog/protected/layouts/MainLayout.tpl
@@ -0,0 +1,20 @@
+<html>
+<com:THead />
+<body>
+<com:TForm>
+
+<div id="header">
+<h1>My PRADO Blog</h1>
+</div>
+
+<div id="main">
+<com:TContentPlaceHolder ID="Main" />
+</div>
+
+<div id="footer">
+Powered by <%= PRADO::poweredByPrado() %>
+</div>
+
+</com:TForm>
+</body>
+</html> \ No newline at end of file