Blame view

config/paths.php 2.22 KB
6c4edfa3   Alexandre   First Commit LabI...
1
2
<?php
/**
66ad693c   Etienne Pallier   Evolution du fram...
3
4
 * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
 * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
6c4edfa3   Alexandre   First Commit LabI...
5
6
7
8
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
66ad693c   Etienne Pallier   Evolution du fram...
9
10
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
 * @link          https://cakephp.org CakePHP(tm) Project
6c4edfa3   Alexandre   First Commit LabI...
11
 * @since         3.0.0
66ad693c   Etienne Pallier   Evolution du fram...
12
 * @license       MIT License (https://opensource.org/licenses/mit-license.php)
6c4edfa3   Alexandre   First Commit LabI...
13
14
 */

66ad693c   Etienne Pallier   Evolution du fram...
15
/*
6c4edfa3   Alexandre   First Commit LabI...
16
17
18
19
20
21
 * Use the DS to separate the directories in other defines
 */
if (!defined('DS')) {
    define('DS', DIRECTORY_SEPARATOR);
}

66ad693c   Etienne Pallier   Evolution du fram...
22
/*
6c4edfa3   Alexandre   First Commit LabI...
23
24
25
26
27
 * These defines should only be edited if you have cake installed in
 * a directory layout other than the way it is distributed.
 * When using custom settings be sure to use the DS and do not add a trailing DS.
 */

66ad693c   Etienne Pallier   Evolution du fram...
28
/*
6c4edfa3   Alexandre   First Commit LabI...
29
30
31
32
 * The full path to the directory which holds "src", WITHOUT a trailing DS.
 */
define('ROOT', dirname(__DIR__));

66ad693c   Etienne Pallier   Evolution du fram...
33
/*
6c4edfa3   Alexandre   First Commit LabI...
34
35
36
37
38
 * The actual directory name for the application directory. Normally
 * named 'src'.
 */
define('APP_DIR', 'src');

66ad693c   Etienne Pallier   Evolution du fram...
39
/*
6c4edfa3   Alexandre   First Commit LabI...
40
41
42
43
 * Path to the application's directory.
 */
define('APP', ROOT . DS . APP_DIR . DS);

66ad693c   Etienne Pallier   Evolution du fram...
44
/*
6c4edfa3   Alexandre   First Commit LabI...
45
46
47
48
 * Path to the config directory.
 */
define('CONFIG', ROOT . DS . 'config' . DS);

66ad693c   Etienne Pallier   Evolution du fram...
49
/*
6c4edfa3   Alexandre   First Commit LabI...
50
 * File path to the webroot directory.
66ad693c   Etienne Pallier   Evolution du fram...
51
52
53
54
 *
 * To derive your webroot from your webserver change this to:
 *
 * `define('WWW_ROOT', rtrim($_SERVER['DOCUMENT_ROOT'], DS) . DS);`
6c4edfa3   Alexandre   First Commit LabI...
55
56
57
 */
define('WWW_ROOT', ROOT . DS . 'webroot' . DS);

66ad693c   Etienne Pallier   Evolution du fram...
58
/*
6c4edfa3   Alexandre   First Commit LabI...
59
60
61
62
 * Path to the tests directory.
 */
define('TESTS', ROOT . DS . 'tests' . DS);

66ad693c   Etienne Pallier   Evolution du fram...
63
/*
6c4edfa3   Alexandre   First Commit LabI...
64
65
66
67
 * Path to the temporary files directory.
 */
define('TMP', ROOT . DS . 'tmp' . DS);

66ad693c   Etienne Pallier   Evolution du fram...
68
/*
6c4edfa3   Alexandre   First Commit LabI...
69
70
71
72
 * Path to the logs directory.
 */
define('LOGS', ROOT . DS . 'logs' . DS);

66ad693c   Etienne Pallier   Evolution du fram...
73
/*
6c4edfa3   Alexandre   First Commit LabI...
74
75
76
77
 * Path to the cache files directory. It can be shared between hosts in a multi-server setup.
 */
define('CACHE', TMP . 'cache' . DS);

66ad693c   Etienne Pallier   Evolution du fram...
78
/*
6c4edfa3   Alexandre   First Commit LabI...
79
80
81
82
83
84
 * The absolute path to the "cake" directory, WITHOUT a trailing DS.
 *
 * CakePHP should always be installed with composer, so look there.
 */
define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'vendor' . DS . 'cakephp' . DS . 'cakephp');

66ad693c   Etienne Pallier   Evolution du fram...
85
/*
6c4edfa3   Alexandre   First Commit LabI...
86
87
88
89
 * Path to the cake directory.
 */
define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
define('CAKE', CORE_PATH . 'src' . DS);