Paths.php 2.7 KB

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