summaryrefslogtreecommitdiffstats
path: root/user_guide_src
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2013-01-29 15:57:16 +0100
committerAndrey Andreev <narf@bofh.bg>2013-01-29 15:57:16 +0100
commit18c9231236f22db9136184636730385b607863e8 (patch)
tree80bcfe0514ab6835d03aa4606e9090beb01f0491 /user_guide_src
parent7e5597782a589e4171ca08abdd9ce1a185542ff4 (diff)
parent4421ad07d7abf3d1f7e3ccc79a0e7f694ba0d30c (diff)
Merge pull request #2208 from appleboy/userguide
fixed #2207 user guide error
Diffstat (limited to 'user_guide_src')
-rw-r--r--user_guide_src/source/tutorial/news_section.rst4
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>