diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2013-01-29 15:51:01 +0100 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2013-01-29 15:51:01 +0100 |
commit | 4421ad07d7abf3d1f7e3ccc79a0e7f694ba0d30c (patch) | |
tree | 80bcfe0514ab6835d03aa4606e9090beb01f0491 /user_guide_src/source | |
parent | 7e5597782a589e4171ca08abdd9ce1a185542ff4 (diff) |
fixed #2207 user guide error
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Diffstat (limited to 'user_guide_src/source')
-rw-r--r-- | user_guide_src/source/tutorial/news_section.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/user_guide_src/source/tutorial/news_section.rst b/user_guide_src/source/tutorial/news_section.rst index b64ea2aae..833e34ead 100644 --- a/user_guide_src/source/tutorial/news_section.rst +++ b/user_guide_src/source/tutorial/news_section.rst @@ -68,7 +68,7 @@ following code to your model. $query = $this->db->get('news'); return $query->result_array(); } - + $query = $this->db->get_where('news', array('slug' => $slug)); return $query->row_array(); } @@ -146,7 +146,7 @@ and add the next piece of code. <?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="<?php echo $news_item['slug'] ?>">View article</a></p> |