mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Adding definition for WWW_ROOT constant (ticket #1533)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3738 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
2069b63e11
commit
d9b8b52eba
1 changed files with 3 additions and 0 deletions
|
@ -72,12 +72,15 @@
|
|||
define('ROOT', $root);
|
||||
define('APP_DIR', $appdir);
|
||||
define('APP_PATH', ROOT.DS.APP_DIR.DS);
|
||||
// TODO: how to handle situation with a non-standard webroot setup?
|
||||
define('WWW_ROOT', APP_PATH.DS.'webroot'.DS);
|
||||
}
|
||||
|
||||
function defineAppConstantsWithDefaultValues() {
|
||||
define('ROOT', CORE_PATH);
|
||||
define('APP_DIR', 'app');
|
||||
define('APP_PATH', ROOT.DS.APP_DIR.DS);
|
||||
define('WWW_ROOT', APP_PATH.DS.'webroot'.DS);
|
||||
}
|
||||
|
||||
function defineConstants() {
|
||||
|
|
Loading…
Add table
Reference in a new issue