Changeset 2003 for trunk/index.php
- Timestamp:
- 02/08/2008 07:19:05 PM (10 months ago)
- Files:
-
- 1 modified
-
trunk/index.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r1631 r2003 2 2 /** 3 3 * This file acts as the "front controller" to your application. You can 4 * configure your application and system directories here, as well as error5 * reporting and error display.4 * configure your application, modules, and system directories here. 5 * PHP error_reporting level may also be changed. 6 6 * 7 7 * @package Core … … 12 12 13 13 /** 14 * Kohana website application directory. This directory should contain your15 * applicationconfiguration, controllers, models, views, and other resources.14 * Website application directory. This directory should contain your application 15 * configuration, controllers, models, views, and other resources. 16 16 * 17 17 * This path can be absolute or relative to this file. … … 20 20 21 21 /** 22 * Kohana package files. This directory should contain the core/ directory, and 23 * the resources you included in your download of Kohana. 22 * Kohana modules directory. This directory should contain all the modules used 23 * by your application. Modules are enabled and disabled by the application 24 * configuration file. 25 * 26 * This path can be absolute or relative to this file. 27 */ 28 $kohana_modules = 'modules'; 29 30 /** 31 * Kohana system directory. This directory should contain the core/ directory, 32 * and the resources you included in your download of Kohana. 24 33 * 25 34 * This path can be absolute or relative to this file. 26 35 */ 27 36 $kohana_system = 'system'; 37 28 38 29 39 /** … … 50 60 * sure that your environment is compatible with Kohana, you can disable this. 51 61 */ 52 version_compare(PHP_VERSION, '5. 1.3', '<') and exit('Kohana requires PHP 5.1.3or newer.');62 version_compare(PHP_VERSION, '5.2', '<') and exit('Kohana requires PHP 5.2 or newer.'); 53 63 54 64 // … … 64 74 // Define application and system paths 65 75 define('APPPATH', str_replace('\\', '/', realpath($kohana_application)).'/'); 76 define('MODPATH', str_replace('\\', '/', realpath($kohana_modules)).'/'); 66 77 define('SYSPATH', str_replace('\\', '/', realpath($kohana_system)).'/'); 67 78 68 79 // Clean up 69 unset($kohana_application, $kohana_ system);80 unset($kohana_application, $kohana_modules, $kohana_system); 70 81 71 82 (is_dir(APPPATH) AND is_dir(APPPATH.'/config')) or die
