-
Notifications
You must be signed in to change notification settings - Fork 395
Open
Description
The documentation shows them being essentially the same:
* - webroot - The webroot directory.
* - wwwRoot - The file path to webroot.
'webroot' => 'webroot',
'wwwRoot' => WWW_ROOT,
However, wwwRoot uses a path from paths.php wile webroot hard-codes the same directory in the config.
/*
* File path to the webroot directory.
*
* To derive your webroot from your webserver change this to:
*
* `define('WWW_ROOT', rtrim($_SERVER['DOCUMENT_ROOT'], DS) . DS);`
*/
define('WWW_ROOT', ROOT . DS . 'webroot' . DS);
When would you want the webroot separate from the path? Asset loading from plugins don't use either of these, but instead hard-code the directory name webroot/ in source.