From b430ecd00aaa80c63734b508c82501bec3a0b703 Mon Sep 17 00:00:00 2001 From: Joël Cox Date: Tue, 23 Aug 2011 14:54:42 +0200 Subject: Bumped the version number, corrected spelling mistakes (thanks @chrisberthe) and added links to the tutorial pages in the introduction. --- user_guide/tutorial/conclusion.html | 4 ++-- user_guide/tutorial/create_news_items.html | 6 +++--- user_guide/tutorial/introduction.html | 17 +++++++++++++---- user_guide/tutorial/news_section.html | 4 ++-- user_guide/tutorial/static_pages.html | 2 +- 5 files changed, 21 insertions(+), 12 deletions(-) diff --git a/user_guide/tutorial/conclusion.html b/user_guide/tutorial/conclusion.html index f0a22956d..f3bdaad1d 100644 --- a/user_guide/tutorial/conclusion.html +++ b/user_guide/tutorial/conclusion.html @@ -28,7 +28,7 @@
- +

CodeIgniter User Guide Version 2.0.2

CodeIgniter User Guide Version 2.0.3

@@ -43,7 +43,7 @@ CodeIgniter Home  ›  User Guide Home  ›  Tutorial  ›  -Features +Conclusion
Search User Guide   
diff --git a/user_guide/tutorial/create_news_items.html b/user_guide/tutorial/create_news_items.html index 66cfc6fdd..a25917930 100644 --- a/user_guide/tutorial/create_news_items.html +++ b/user_guide/tutorial/create_news_items.html @@ -28,7 +28,7 @@
- +

CodeIgniter User Guide Version 2.0.2

CodeIgniter User Guide Version 2.0.3

@@ -85,7 +85,7 @@ Create news items

There are only two things here that probably look unfamiliar to you: the form_open() function and the validation_errors() function.

-

The first function is provided by the form helper and renders the form element and adds extra functionality, like adding a hidden CSFR prevention field. The latter is used to report errors related to from validation.

+

The first function is provided by the form helper and renders the form element and adds extra functionality, like adding a hidden CSFR prevention field. The latter is used to report errors related to form validation.

Go back to your news controller. You're going to do two things here, check whether the form was submitted and whether the submitted data passed the validation rules. You'll use the form validation library to do this.

@@ -150,7 +150,7 @@ function set_news()

Routing

-

Before you can start adding news items into your CodeIgniter application you have to add an extra rule to config/routes.php file. Make sure your file contains the following. This makes sure CodeIgniter sees 'update' as a method instead of a news item's slug.

+

Before you can start adding news items into your CodeIgniter application you have to add an extra rule to config/routes.php file. Make sure your file contains the following. This makes sure CodeIgniter sees 'create' as a method instead of a news item's slug.

 $route['news/create'] = 'news/create';
diff --git a/user_guide/tutorial/introduction.html b/user_guide/tutorial/introduction.html
index cb91f4856..78fd00b61 100644
--- a/user_guide/tutorial/introduction.html
+++ b/user_guide/tutorial/introduction.html
@@ -28,7 +28,7 @@
 
- +

CodeIgniter User Guide Version 2.0.2

CodeIgniter User Guide Version 2.0.3

@@ -59,9 +59,7 @@ Introduction

Tutorial − Introduction

-

This tutorial is intended to introduce you to the CodeIgniter framework and the basic principles of MVC architecture. - It will show you how a basic CodeIgniter application is constructed in step-by-step fashion. -

+

This tutorial is intended to introduce you to the CodeIgniter framework and the basic principles of MVC architecture. It will show you how a basic CodeIgniter application is constructed in step-by-step fashion.

In this tutorial, you will be creating a basic news application. You will begin by writing the code that can load static pages. Next, you will create a news section that reads news items from a database. Finally, you'll add a form to create news items in the database.

@@ -73,6 +71,17 @@ Introduction
  • Performing basic database queries using "Active Record"
  • +

    The entire tutorial is split up over several pages, each explaining a small part of the functionality of the CodeIgniter framework. You'll go through the following pages:

    +
      +
    • Introduction, this page, which gives you an overview of what to expect.
    • +
    • Static pages, which will teach you the basics of controllers, views and routing.
    • +
    • News section, where you'll start using models and will be doing some basic database operations.
    • +
    • Create news items, which will introduce more advanced database operations and form validation.
    • +
    • Conclusion, which will give you some pointers on further reading and other resources.
    • +
    + +

    Enjoy your exploration of the CodeIgniter framework.

    +
    diff --git a/user_guide/tutorial/news_section.html b/user_guide/tutorial/news_section.html index d0f64e0c9..8d8899968 100644 --- a/user_guide/tutorial/news_section.html +++ b/user_guide/tutorial/news_section.html @@ -28,7 +28,7 @@
    - +

    CodeIgniter User Guide Version 2.0.2

    CodeIgniter User Guide Version 2.0.3

    @@ -94,7 +94,7 @@ CREATE TABLE news ( );
    -

    Now that the database and a model have been set up, you'll need a method to get all of our posts from our database. To do this, the database abstraction layer that is included with CodeIgniter — ActiveRecord — is used. This makes it possible to write your 'queries' once and make them work on all supported database systems. Add the following code to your model.

    +

    Now that the database and a model have been set up, you'll need a method to get all of our posts from our database. To do this, the database abstraction layer that is included with CodeIgniter — Active Record — is used. This makes it possible to write your 'queries' once and make them work on all supported database systems. Add the following code to your model.

     function get_news($slug = FALSE)
    diff --git a/user_guide/tutorial/static_pages.html b/user_guide/tutorial/static_pages.html
    index 69e5b7446..d5eec43da 100644
    --- a/user_guide/tutorial/static_pages.html
    +++ b/user_guide/tutorial/static_pages.html
    @@ -28,7 +28,7 @@
     
    - +

    CodeIgniter User Guide Version 2.0.2

    CodeIgniter User Guide Version 2.0.3

    -- cgit v1.2.3-24-g4f1b