summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/tutorial
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide_src/source/tutorial')
-rw-r--r--user_guide_src/source/tutorial/conclusion.rst6
-rw-r--r--user_guide_src/source/tutorial/create_news_items.rst2
-rw-r--r--user_guide_src/source/tutorial/news_section.rst8
3 files changed, 9 insertions, 7 deletions
diff --git a/user_guide_src/source/tutorial/conclusion.rst b/user_guide_src/source/tutorial/conclusion.rst
index a5f69b4e7..0d90cde6f 100644
--- a/user_guide_src/source/tutorial/conclusion.rst
+++ b/user_guide_src/source/tutorial/conclusion.rst
@@ -20,7 +20,7 @@ CodeIgniter within a few days.
If you still have questions about the framework or your own CodeIgniter
code, you can:
-- Check out our `forums <http://ellislab.com/forums>`_
-- Visit our `IRC chatroom <https://github.com/EllisLab/CodeIgniter/wiki/IRC>`_
-- Explore the `Wiki <https://github.com/EllisLab/CodeIgniter/wiki/>`_
+- Check out our `forums <http://forum.codeigniter.com/>`_
+- Visit our `IRC chatroom <https://github.com/bcit-ci/CodeIgniter/wiki/IRC>`_
+- Explore the `Wiki <https://github.com/bcit-ci/CodeIgniter/wiki/>`_
diff --git a/user_guide_src/source/tutorial/create_news_items.rst b/user_guide_src/source/tutorial/create_news_items.rst
index ad355b33d..1f4a96dd3 100644
--- a/user_guide_src/source/tutorial/create_news_items.rst
+++ b/user_guide_src/source/tutorial/create_news_items.rst
@@ -18,7 +18,7 @@ application/views/news/create.php.
::
- <h2>Create a news item</h2>
+ <h2><?php echo $title ?></h2>
<?php echo validation_errors(); ?>
diff --git a/user_guide_src/source/tutorial/news_section.rst b/user_guide_src/source/tutorial/news_section.rst
index ad9ed41d3..80938de32 100644
--- a/user_guide_src/source/tutorial/news_section.rst
+++ b/user_guide_src/source/tutorial/news_section.rst
@@ -143,13 +143,15 @@ and add the next piece of code.
::
+ <h2><?php echo $title ?></h2>
+
<?php foreach ($news as $news_item): ?>
- <h2><?php echo $news_item['title'] ?></h2>
+ <h3><?php echo $news_item['title'] ?></h3>
<div class="main">
<?php echo $news_item['text'] ?>
</div>
- <p><a href="<?php echo $news_item['slug'] ?>">View article</a></p>
+ <p><a href="news/<?php echo $news_item['slug'] ?>">View article</a></p>
<?php endforeach ?>
@@ -196,7 +198,7 @@ The only things left to do is create the corresponding view at
Routing
-------
-Because of the wildcard routing rule created earlier, you need need an
+Because of the wildcard routing rule created earlier, you need an
extra route to view the controller that you just made. Modify your
routing file (application/config/routes.php) so it looks as follows.
This makes sure the requests reaches the news controller instead of