diff options
author | admin <devnull@localhost> | 2006-10-30 18:12:14 +0100 |
---|---|---|
committer | admin <devnull@localhost> | 2006-10-30 18:12:14 +0100 |
commit | a42bf30be502fa46f61ba77575e71fb587b30102 (patch) | |
tree | 212da1e58957f891114d17f0947961da692a709a /user_guide | |
parent | b79b42af353a3070fd19f234ff3ee17502ac57b5 (diff) |
Diffstat (limited to 'user_guide')
-rw-r--r-- | user_guide/general/multiple_apps.html | 33 |
1 files 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() { <td id="breadcrumb">
<a href="http://www.codeigniter.com/">Code Igniter Home</a> ›
<a href="../index.html">User Guide Home</a> ›
-Running Multiple Applications
+Managing your Applications
</td>
<td id="searchbox"><form method="get" action="http://www.google.com/search"><input type="hidden" name="as_sitesearch" id="as_sitesearch" value="www.codeigniter.com/user_guide/" />Search User Guide <input type="text" class="input" style="width:200px;" name="q" id="q" size="31" maxlength="255" value="" /> <input type="submit" class="submit" name="sa" value="Go" /></form></td>
</tr>
@@ -60,11 +60,32 @@ Running Multiple Applications <!-- START CONTENT -->
<div id="content">
-<h1>Running Multiple Applications with one Code Igniter Installation</h1>
+<h1>Managing your Applications</h1>
<p>By default it is assumed that you only intend to use Code Igniter to manage one application, which you will build in your
<dfn>system/application/</dfn> 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 <kbd>application</kbd> folder into their
+Code Igniter installation, or even to rename or relocate your <dfn>application</dfn> folder.</p>
+
+<h2>Renaming the Application Folder</h2>
+
+<p>If you would like to rename your <dfn>applicaiton</dfn> folder you may do so as long as you open your main <kbd>index.php</kbd>
+file and set its name using the <samp>$application_folder</samp> variable:</p>
+
+<code>$application_folder = "application";</code>
+
+<h2>Relocating your Application Folder</h2>
+
+<p>It is possible to move your <dfn>application</dfn> folder to a different location on your server than your <kbd>system</kbd> folder.
+To do so open your main <kbd>index.php</kbd> and set a <em>full server path</em> in the <samp>$application_folder</samp> variable.</p>
+
+
+<code>$application_folder = "/Path/to/your/application";</code>
+
+
+<h2>Running Multiple Applications with one Code Igniter Installation</h2>
+
+<p>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 <kbd>application</kbd> folder into their
own sub-folder.</p>
<p>For example, let's say you want to create two applications, "foo" and "bar". You will structure your
@@ -89,9 +110,11 @@ system/application/<samp>bar</samp>/views/</code> <p>To select a particular application for use requires that you open your main <kbd>index.php</kbd> file and set the <dfn>$application_folder</dfn>
variable. For example, to select the "foo" application for use you would do this:</p>
-<code>$application_folder = "foo";</code>
+<code>$application_folder = "application/foo";</code>
+
+<p class="important"><strong>Note:</strong> Each of your applications will need its own <dfn>index.php</dfn> file which
+calls the desired application. The index.php file can be named anything you want.</p>
-<p>Note: Each of your applications will need its own <dfn>index.php</dfn> file (the index.php file can be named anything you want).</p>
|