Paths.php 2.8 KB

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