From a2b1209e882a35ae64ac2227da83b145ea42c1ff Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 31 Oct 2006 03:26:00 +0000 Subject: --- user_guide/general/managing_apps.html | 139 ++++++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 user_guide/general/managing_apps.html (limited to 'user_guide/general') diff --git a/user_guide/general/managing_apps.html b/user_guide/general/managing_apps.html new file mode 100644 index 000000000..387368b62 --- /dev/null +++ b/user_guide/general/managing_apps.html @@ -0,0 +1,139 @@ + + + + +Code Igniter User Guide + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +

Code Igniter User Guide Version 1.5.0

+
+ + + + + + + + + +
+ + +
+ + + +
+ +

Managing your Applications

+ +

By default it is assumed that you only intend to use Code Igniter to manage one application, which you will build in your +system/application/ directory. It is possible, however, to have multiple sets of applications that share a single +Code Igniter installation, or even to rename or relocate your application folder.

+ +

Renaming the Application Folder

+ +

If you would like to rename your applicaiton folder you may do so as long as you open your main index.php +file and set its name using the $application_folder variable:

+ +$application_folder = "application"; + +

Relocating your Application Folder

+ +

It is possible to move your application folder to a different location on your server than your system folder. +To do so open your main index.php and set a full server path in the $application_folder variable.

+ + +$application_folder = "/Path/to/your/application"; + + +

Running Multiple Applications with one Code Igniter Installation

+ +

If you would like to share a common Code Igniter installation to manage several different applications simply +put all of the directories located inside your application folder into their +own sub-folder.

+ +

For example, let's say you want to create two applications, "foo" and "bar". You will structure your +application folder like this: + +system/application/foo/
+system/application/foo/config/
+system/application/foo/controllers/
+system/application/foo/errors/
+system/application/foo/libraries/
+system/application/foo/models/
+system/application/foo/views/
+system/application/bar/
+system/application/bar/config/
+system/application/bar/controllers/
+system/application/bar/errors/
+system/application/bar/libraries/
+system/application/bar/models/
+system/application/bar/views/
+ + +

To select a particular application for use requires that you open your main index.php file and set the $application_folder +variable. For example, to select the "foo" application for use you would do this:

+ +$application_folder = "application/foo"; + +

Note:  Each of your applications will need its own index.php file which +calls the desired application. The index.php file can be named anything you want.

+ + + + + +
+ + + + + + + \ No newline at end of file -- cgit v1.2.3-24-g4f1b