diff options
author | Wes Baker <wes@wesbaker.com> | 2014-05-14 20:20:54 +0200 |
---|---|---|
committer | Wes Baker <wes@wesbaker.com> | 2014-05-14 20:20:54 +0200 |
commit | 5800de6835bfa943b7ffca94917f3f85696cc35f (patch) | |
tree | 8ddf90a4d66245a5b86745eae2b75a17ab0ffa34 | |
parent | b589c09cac5be1d82a57cdf70a31d8c30976fee6 (diff) |
Corrections to the tutorial.
-rw-r--r-- | user_guide/tutorial/news_section.html | 4 | ||||
-rw-r--r-- | user_guide/tutorial/static_pages.html | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/user_guide/tutorial/news_section.html b/user_guide/tutorial/news_section.html index f8e64fc36..f3d616ab8 100644 --- a/user_guide/tutorial/news_section.html +++ b/user_guide/tutorial/news_section.html @@ -161,7 +161,7 @@ public function index() <?php foreach ($news as $news_item): ?> <h2><?php echo $news_item['title'] ?></h2> - <div id="main"> + <div class="main"> <?php echo $news_item['text'] ?> </div> <p><a href="news/<?php echo $news_item['slug'] ?>">View article</a></p> @@ -227,4 +227,4 @@ Next Topic: <a href="create_news_items.html">Create news items</a> </div> </body> -</html>
\ No newline at end of file +</html> diff --git a/user_guide/tutorial/static_pages.html b/user_guide/tutorial/static_pages.html index 4b138d74e..e9aaa9739 100644 --- a/user_guide/tutorial/static_pages.html +++ b/user_guide/tutorial/static_pages.html @@ -137,7 +137,7 @@ If you like to be particularly un-original, try "Hello World!".</p> public function view($page = 'home') { - if ( ! file_exists('application/views/pages/'.$page.'.php')) + if ( ! file_exists(APPPATH.'/views/pages/'.$page.'.php')) { // Whoops, we don't have a page for that! show_404(); @@ -203,4 +203,4 @@ Next Topic: <a href="news_section.html">News section</a> </div> </body> -</html>
\ No newline at end of file +</html> |