paths.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?php
  2. /**
  3. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  4. * Copyright 2005-2012, 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 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  10. * @link http://cakephp.org CakePHP(tm) Project
  11. * @package app.Config
  12. * @since CakePHP(tm) v3.0.0
  13. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  14. */
  15. /**
  16. * Use the DS to separate the directories in other defines
  17. */
  18. define('DS', DIRECTORY_SEPARATOR);
  19. /**
  20. * These defines should only be edited if you have cake installed in
  21. * a directory layout other than the way it is distributed.
  22. * When using custom settings be sure to use the DS and do not add a trailing DS.
  23. */
  24. /**
  25. * The full path to the directory which holds "App", WITHOUT a trailing DS.
  26. */
  27. define('ROOT', dirname(dirname(__DIR__)));
  28. /**
  29. * The actual directory name for the "App".
  30. */
  31. define('APP_DIR', basename(dirname(__DIR__)));
  32. /**
  33. * The name of the webroot dir. Defaults to 'webroot'
  34. */
  35. define('WEBROOT_DIR', 'webroot');
  36. /**
  37. * Path to the application's directory.
  38. */
  39. define('APP', ROOT . DS . APP_DIR . DS);
  40. /**
  41. * File path to the webroot directory.
  42. */
  43. define('WWW_ROOT', APP . WEBROOT_DIR . DS);
  44. /**
  45. * Path to the tests directory.
  46. */
  47. define('TESTS', APP . 'Test' . DS);
  48. /**
  49. * Path to the temporary files directory.
  50. */
  51. define('TMP', APP . 'tmp' . DS);
  52. /**
  53. * Path to the logs directory.
  54. */
  55. define('LOGS', TMP . 'logs' . DS);
  56. /**
  57. * Path to the cache files directory. It can be shared between hosts in a multi-server setup.
  58. */
  59. define('CACHE', TMP . 'cache' . DS);
  60. /**
  61. * The absolute path to the "cake" directory, WITHOUT a trailing DS.
  62. *
  63. * Attempt to use composer's vendor directories. If that fails,
  64. * assume the standard lib/Cake path.
  65. */
  66. if (file_exists(dirname(__DIR__) . '/vendor/autoload.php')) {
  67. define('CAKE_CORE_INCLUDE_PATH', dirname(__DIR__) . '/vendor/cakephp/cakephp');
  68. } else {
  69. define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib');
  70. }
  71. /**
  72. * Path to the cake directory.
  73. */
  74. define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
  75. define('CAKE', CORE_PATH . 'Cake' . DS);