paths.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. /**
  3. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  4. * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  5. *
  6. * Licensed under The MIT License
  7. * Redistributions of files must retain the above copyright notice.
  8. *
  9. * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  10. * @link http://cakephp.org CakePHP(tm) Project
  11. * @since 3.0.0
  12. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  13. */
  14. /**
  15. * Use the DS to separate the directories in other defines
  16. */
  17. if (!defined('DS')) {
  18. define('DS', DIRECTORY_SEPARATOR);
  19. }
  20. /**
  21. * These defines should only be edited if you have cake installed in
  22. * a directory layout other than the way it is distributed.
  23. * When using custom settings be sure to use the DS and do not add a trailing DS.
  24. */
  25. /**
  26. * The full path to the directory which holds "src", WITHOUT a trailing DS.
  27. */
  28. define('ROOT', dirname(__DIR__));
  29. /**
  30. * The actual directory name for the application directory. Normally
  31. * named 'src'.
  32. */
  33. define('APP_DIR', 'src');
  34. /**
  35. * Path to the application's directory.
  36. */
  37. define('APP', ROOT . DS . APP_DIR . DS);
  38. /**
  39. * Path to the config directory.
  40. */
  41. define('CONFIG', ROOT . DS . 'config' . DS);
  42. /**
  43. * File path to the webroot directory.
  44. */
  45. define('WWW_ROOT', ROOT . DS . 'webroot' . DS);
  46. /**
  47. * Path to the tests directory.
  48. */
  49. define('TESTS', ROOT . DS . 'tests' . DS);
  50. /**
  51. * Path to the temporary files directory.
  52. */
  53. define('TMP', ROOT . DS . 'tmp' . DS);
  54. /**
  55. * Path to the logs directory.
  56. */
  57. define('LOGS', ROOT . DS . 'logs' . DS);
  58. /**
  59. * Path to the cache files directory. It can be shared between hosts in a multi-server setup.
  60. */
  61. define('CACHE', TMP . 'cache' . DS);
  62. /**
  63. * The absolute path to the "cake" directory, WITHOUT a trailing DS.
  64. *
  65. * CakePHP should always be installed with composer, so look there.
  66. */
  67. define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'vendor' . DS . 'cakephp' . DS . 'cakephp');
  68. /**
  69. * Path to the cake directory.
  70. */
  71. define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
  72. define('CAKE', CORE_PATH . 'src' . DS);