summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-30 18:13:13 +0100
committeradmin <devnull@localhost>2006-10-30 18:13:13 +0100
commitcef2106de1c7044072499aa5d4e529a01c3db8a4 (patch)
treec8f898d01acd5915066e5d65b24ba09933cf903b /index.php
parenta42bf30be502fa46f61ba77575e71fb587b30102 (diff)
Diffstat (limited to 'index.php')
-rw-r--r--index.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/index.php b/index.php
index 0386ed6ed..6c839ec54 100644
--- a/index.php
+++ b/index.php
@@ -32,7 +32,11 @@ error_reporting(E_ALL);
|---------------------------------------------------------------
|
| If you want this front controller to use a different "application"
-| folder then the default one you can set its name here.
+| folder then the default one you can set its name here.
+| The folder can also be relocated anywhere on your server. For
+| more info please see the user guide:
+| http://www.codeigniter.com/user_guide/general/managing_apps.html
+|
|
| NO TRAILING SLASH!
|
@@ -77,7 +81,15 @@ define('EXT', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION));
define('FCPATH', __FILE__);
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
define('BASEPATH', $system_folder.'/');
-define('APPPATH', BASEPATH.$application_folder.'/');
+
+if ( ! is_dir($application_folder))
+{
+ define($application_folder.'/');
+}
+else
+{
+ define('APPPATH', BASEPATH.$application_folder.'/');
+}
// Load the front controller and away we go!....
require_once BASEPATH.'codeigniter/CodeIgniter'.EXT;