|
| 1 | +<?php namespace Config; |
| 2 | + |
| 3 | +/** |
| 4 | + * Holds the paths that are used by the system to |
| 5 | + * locate the main directories, application, system, etc. |
| 6 | + * Modifying these allows you to re-structure your application, |
| 7 | + * share a system folder between multiple applications, and more. |
| 8 | + * |
| 9 | + * All paths are relative to the application's front controller, index.php |
| 10 | + */ |
| 11 | +class Paths |
| 12 | +{ |
| 13 | + /* |
| 14 | + *--------------------------------------------------------------- |
| 15 | + * SYSTEM FOLDER NAME |
| 16 | + *--------------------------------------------------------------- |
| 17 | + * |
| 18 | + * This variable must contain the name of your "system" folder. |
| 19 | + * Include the path if the folder is not in the same directory |
| 20 | + * as this file. |
| 21 | + */ |
| 22 | + public $systemDirectory = '../system'; |
| 23 | + |
| 24 | + /* |
| 25 | + *--------------------------------------------------------------- |
| 26 | + * APPLICATION FOLDER NAME |
| 27 | + *--------------------------------------------------------------- |
| 28 | + * |
| 29 | + * If you want this front controller to use a different "application" |
| 30 | + * folder than the default one you can set its name here. The folder |
| 31 | + * can also be renamed or relocated anywhere on your getServer. If |
| 32 | + * you do, use a full getServer path. For more info please see the user guide: |
| 33 | + * http://codeigniter.com/user_guide/general/managing_apps.html |
| 34 | + * |
| 35 | + * NO TRAILING SLASH! |
| 36 | + */ |
| 37 | + public $applicationDirectory = '../application'; |
| 38 | + |
| 39 | + /* |
| 40 | + * --------------------------------------------------------------- |
| 41 | + * WRITABLE DIRECTORY NAME |
| 42 | + * --------------------------------------------------------------- |
| 43 | + * |
| 44 | + * This variable must contain the name of your "writable" directory. |
| 45 | + * The writable directory allows you to group all directories that |
| 46 | + * need write permission to a single place that can be tucked away |
| 47 | + * for maximum security, keeping it out of the application and/or |
| 48 | + * system directories. |
| 49 | + */ |
| 50 | + public $writableDirectory = '../writable'; |
| 51 | + |
| 52 | + /* |
| 53 | + * --------------------------------------------------------------- |
| 54 | + * TESTS DIRECTORY NAME |
| 55 | + * --------------------------------------------------------------- |
| 56 | + * |
| 57 | + * This variable must contain the name of your "tests" directory. |
| 58 | + * The writable directory allows you to group all directories that |
| 59 | + * need write permission to a single place that can be tucked away |
| 60 | + * for maximum security, keeping it out of the application and/or |
| 61 | + * system directories. |
| 62 | + */ |
| 63 | + public $testsDirectory = '../tests'; |
| 64 | + |
| 65 | + /* |
| 66 | + * --------------------------------------------------------------- |
| 67 | + * PUBLIC DIRECTORY NAME |
| 68 | + * --------------------------------------------------------------- |
| 69 | + * |
| 70 | + * This variable must contain the name of the directory that |
| 71 | + * contains the main index.php front-controller. By default, |
| 72 | + * this is the `public` directory, but some hosts may not |
| 73 | + * be able to map a primary domain to a sub-directory so you |
| 74 | + * can change this to `public_html`, for example, to comply |
| 75 | + * with your host's needs. |
| 76 | + */ |
| 77 | + public $publicDirectory = 'public'; |
| 78 | +} |
0 commit comments