From b071bb5a92aade551345a495fb13f5678f3978d0 Mon Sep 17 00:00:00 2001
From: admin
Date: Sat, 26 Aug 2006 19:28:37 +0000
Subject:
---
user_guide/general/changelog.html | 16 ++++++++++++----
user_guide/general/controllers.html | 20 ++++++++++++++++++++
user_guide/general/routing.html | 2 +-
3 files changed, 33 insertions(+), 5 deletions(-)
(limited to 'user_guide/general')
diff --git a/user_guide/general/changelog.html b/user_guide/general/changelog.html
index 5f3b86904..5721bc866 100644
--- a/user_guide/general/changelog.html
+++ b/user_guide/general/changelog.html
@@ -69,20 +69,28 @@ Change Log
- Added Hooks feature, enabling you to tap into and modify the inner workings of the framework without hacking the core files.
+- Added the ability to organize controller files into sub-folders. Kudos to Marco for suggesting this (and the next two) feature.
+- Added regular expressions support for routing rules.
- Added the ability to replace core system classes with your own classes.
- Added support for % character in URL.
-- Added the ability to organize controller files into sub-folders.
-
- Updated the Routing feature to accept regular expressions within routing rules.
+- Added the ability to supply full URLs using the anchor() helper function.
- Moved the MIME type array out of the Upload class and into its own file in the applications/comfig/ folder.
+- Tweaked the URI Protocol code to allow more options so that URLs will work more reliably in different environments.
- Removed a strtolower() call that was changing URL segments to lower case.
+- Removed some references that were interfering with PHP 4.4.1 compatibility.
+- Removed backticks from Postgre class since these are not needed.
- Deprecated the hash() function due to a naming conflict with a native PHP function with the same name. Please use dohash() instead.
-- Fixed a MS SQL issue.
- Fixed an issue when removing GET variables.
- Fixed this router bug.
- Fixed a bug that was preventing multiple discreet database calls.
- Fixed a bug in which loading a language file was producing a "file contains no data" message.
- Fixed a session bug caused by the XSS Filtering feature inadvertently changing the case of certain words.
-- Removed backticks from Postgre class since these are not needed.
+- Fixed some missing prefixes when using the database prefix feature.
+- Fixed a bug that was causing the Loader class to incorrectly identify the file extension.
+- Fixed a typo in the Calendar class (cal_november).
+- Fixed an evaluation bug in the database initialization function.
+- Fixed some MS SQL bugs.
+- Fixed some doc typos.
diff --git a/user_guide/general/controllers.html b/user_guide/general/controllers.html
index 648298eb0..b45b5aef7 100644
--- a/user_guide/general/controllers.html
+++ b/user_guide/general/controllers.html
@@ -71,6 +71,7 @@ Controllers
Functions
Private Functions
Defining a Default Controller
+Organizing Controllers into Sub-folders
Class Constructors
Reserved Function Names
@@ -204,6 +205,25 @@ your application/config/routes.php file and set this variable:
specifying any URI segments you'll see your Hello World message by default.
+
+Organizing Your Controllers into Sub-folders
+
+If you are building a large application you might find it convenient to organize your controllers into sub-folders. Code Igniter permits you to do this.
+
+Simply create folders within your application/controllers directory and place your controller classes within them.
+
+Note: When using this feature the first segment or your URI must specify the folder. For example, lets say you have a controller
+located here:
+
+application/controllers/products/shoes.php
+
+To call the above controller your URI will look something like this:
+
+www.your-site.com/index.php/products/shoes/123
+
+Code Igniter also permits you to remap your URIs using its URI Routing feature.
+
+
Class Constructors
diff --git a/user_guide/general/routing.html b/user_guide/general/routing.html
index 977698b9f..e5dac6808 100644
--- a/user_guide/general/routing.html
+++ b/user_guide/general/routing.html
@@ -138,7 +138,7 @@ Higher routes will always take precedence over lower ones.
A typical RegEx route might look something like this:
-$route['products\/([a-z]+)\/(\d+)'] = "$1/id_$2";
+$route['products/([a-z]+)/(\d+)'] = "$1/id_$2";
In the above example, a URI similar to products/shirts/123 would instead call the shirts controller class and the id_123 function.
--
cgit v1.2.3-24-g4f1b