diff options
author | admin <devnull@localhost> | 2006-10-30 18:13:13 +0100 |
---|---|---|
committer | admin <devnull@localhost> | 2006-10-30 18:13:13 +0100 |
commit | cef2106de1c7044072499aa5d4e529a01c3db8a4 (patch) | |
tree | c8f898d01acd5915066e5d65b24ba09933cf903b /index.php | |
parent | a42bf30be502fa46f61ba77575e71fb587b30102 (diff) |
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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; |