diff options
Diffstat (limited to 'demos/blog-tutorial/samples/day4/blog/protected')
3 files changed, 6 insertions, 2 deletions
diff --git a/demos/blog-tutorial/samples/day4/blog/protected/application.xml b/demos/blog-tutorial/samples/day4/blog/protected/application.xml index fd6781df..68ed9609 100644 --- a/demos/blog-tutorial/samples/day4/blog/protected/application.xml +++ b/demos/blog-tutorial/samples/day4/blog/protected/application.xml @@ -3,7 +3,6 @@ <application id="blog" mode="Debug">
<paths>
<using namespace="Application.database.*" />
- <using namespace="Application.common.*" />
</paths>
<!-- configurations for modules -->
diff --git a/demos/blog-tutorial/samples/day4/blog/protected/layouts/MainLayout.tpl b/demos/blog-tutorial/samples/day4/blog/protected/layouts/MainLayout.tpl index 3f0a9a4f..cc4a34c1 100644 --- a/demos/blog-tutorial/samples/day4/blog/protected/layouts/MainLayout.tpl +++ b/demos/blog-tutorial/samples/day4/blog/protected/layouts/MainLayout.tpl @@ -2,6 +2,7 @@ <com:THead />
<body>
<com:TForm>
+<div id="page">
<div id="header">
<h1>My PRADO Blog</h1>
@@ -13,7 +14,8 @@ <div id="footer">
-<a href="<%= $this->Service->DefaultPageUrl %>">Home</a>
+<com:THyperLink Text="Home"
+ NavigateUrl="<%= $this->Service->DefaultPageUrl %>" />
<com:THyperLink Text="New Post"
NavigateUrl="<%= $this->Service->constructUrl('posts.NewPost') %>"
@@ -35,6 +37,7 @@ <%= PRADO::poweredByPrado() %>
</div>
+</div>
</com:TForm>
</body>
</html>
\ No newline at end of file diff --git a/demos/blog-tutorial/samples/day4/blog/protected/pages/posts/PostRenderer.tpl b/demos/blog-tutorial/samples/day4/blog/protected/pages/posts/PostRenderer.tpl index 862df1ab..8f4a0502 100644 --- a/demos/blog-tutorial/samples/day4/blog/protected/pages/posts/PostRenderer.tpl +++ b/demos/blog-tutorial/samples/day4/blog/protected/pages/posts/PostRenderer.tpl @@ -1,3 +1,4 @@ +<div class="post-box">
<h3>
<com:THyperLink Text="<%# $this->Data->title %>"
NavigateUrl="<%# $this->Service->constructUrl('posts.ReadPost',array('id'=>$this->Data->post_id)) %>" />
@@ -13,3 +14,4 @@ Time: <p>
<com:TLiteral Text="<%# $this->Data->content %>" />
</p>
+</div>
\ No newline at end of file |