From b071bb5a92aade551345a495fb13f5678f3978d0 Mon Sep 17 00:00:00 2001
From: admin
Date: Sat, 26 Aug 2006 19:28:37 +0000
Subject:
---
user_guide/general/controllers.html | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
(limited to 'user_guide/general/controllers.html')
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
--
cgit v1.2.3-24-g4f1b