|
| 1 | +<?php namespace Config; |
| 2 | + |
| 3 | +/** |
| 4 | + * Holds the paths that are used by the system to |
| 5 | + * locate the main directories, app, 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 project's root folder. |
| 10 | + */ |
| 11 | + |
| 12 | +class Paths |
| 13 | +{ |
| 14 | + /* |
| 15 | + *--------------------------------------------------------------- |
| 16 | + * SYSTEM FOLDER NAME |
| 17 | + *--------------------------------------------------------------- |
| 18 | + * |
| 19 | + * This variable must contain the name of your "system" folder. |
| 20 | + * Include the path if the folder is not in the same directory |
| 21 | + * as this file. |
| 22 | + */ |
| 23 | + public $systemDirectory = __DIR__ . '/../../vendor/codeigniter4/framework/system'; |
| 24 | + |
| 25 | + /* |
| 26 | + *--------------------------------------------------------------- |
| 27 | + * APPLICATION FOLDER NAME |
| 28 | + *--------------------------------------------------------------- |
| 29 | + * |
| 30 | + * If you want this front controller to use a different "app" |
| 31 | + * folder than the default one you can set its name here. The folder |
| 32 | + * can also be renamed or relocated anywhere on your getServer. If |
| 33 | + * you do, use a full getServer path. For more info please see the user guide: |
| 34 | + * http://codeigniter.com/user_guide/general/managing_apps.html |
| 35 | + * |
| 36 | + * NO TRAILING SLASH! |
| 37 | + */ |
| 38 | + public $appDirectory = __DIR__ . '/..'; |
| 39 | + |
| 40 | + /* |
| 41 | + * --------------------------------------------------------------- |
| 42 | + * WRITABLE DIRECTORY NAME |
| 43 | + * --------------------------------------------------------------- |
| 44 | + * |
| 45 | + * This variable must contain the name of your "writable" directory. |
| 46 | + * The writable directory allows you to group all directories that |
| 47 | + * need write permission to a single place that can be tucked away |
| 48 | + * for maximum security, keeping it out of the app and/or |
| 49 | + * system directories. |
| 50 | + */ |
| 51 | + public $writableDirectory = __DIR__ . '/../../writable'; |
| 52 | + |
| 53 | + /* |
| 54 | + * --------------------------------------------------------------- |
| 55 | + * TESTS DIRECTORY NAME |
| 56 | + * --------------------------------------------------------------- |
| 57 | + * |
| 58 | + * This variable must contain the name of your "tests" directory. |
| 59 | + * The writable directory allows you to group all directories that |
| 60 | + * need write permission to a single place that can be tucked away |
| 61 | + * for maximum security, keeping it out of the app and/or |
| 62 | + * system directories. |
| 63 | + */ |
| 64 | + public $testsDirectory = __DIR__ . '/../../tests'; |
| 65 | + |
| 66 | + /* |
| 67 | + * --------------------------------------------------------------- |
| 68 | + * VIEW DIRECTORY NAME |
| 69 | + * --------------------------------------------------------------- |
| 70 | + * |
| 71 | + * This variable must contain the name of the directory that |
| 72 | + * contains the view files used by your application. By |
| 73 | + * default this is in `app/Views`. This value |
| 74 | + * is used when no value is provided to `Services::renderer()`. |
| 75 | + */ |
| 76 | + public $viewDirectory = __DIR__ . '/../Views'; |
| 77 | +} |
0 commit comments