From a42bf30be502fa46f61ba77575e71fb587b30102 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 30 Oct 2006 17:12:14 +0000 Subject: --- user_guide/general/multiple_apps.html | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/user_guide/general/multiple_apps.html b/user_guide/general/multiple_apps.html index f9e9ab38b..9b5c68d71 100644 --- a/user_guide/general/multiple_apps.html +++ b/user_guide/general/multiple_apps.html @@ -47,7 +47,7 @@ window.onload = function() { Code Igniter Home  ›  User Guide Home  ›  -Running Multiple Applications +Managing your Applications
Search User Guide   
@@ -60,11 +60,32 @@ Running Multiple Applications
-

Running Multiple Applications with one Code Igniter Installation

+

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. To do this you will put all of the directories located inside your application folder into their +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 @@ -89,9 +110,11 @@ 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 = "foo"; +$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.

-

Note: Each of your applications will need its own index.php file (the index.php file can be named anything you want).

-- cgit v1.2.3-24-g4f1b