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:
dho 2006-10-24 14:45:55 +00:00
parent 2069b63e11
commit d9b8b52eba

View file

@ -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() {