From ce9f33314d700e4c47700a450efe821806e60bc8 Mon Sep 17 00:00:00 2001 From: Livia Scapin Date: Wed, 19 Apr 2017 17:12:24 +0200 Subject: [PATCH] Added documentation for App.base As discussed in https://github.com/cakephp/docs/issues/4895 --- app/Config/core.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/Config/core.php b/app/Config/core.php index 61277674d..7bb39ee5a 100644 --- a/app/Config/core.php +++ b/app/Config/core.php @@ -116,10 +116,17 @@ * for any URL generation inside the application, set the following * configuration variable to the http(s) address to your domain. This * will override the automatic detection of full base URL and can be - * useful when generating links from the CLI (e.g. sending emails) + * useful when generating links from the CLI (e.g. sending emails). + * If the application runs in a subfolder, you should also set App.base. */ //Configure::write('App.fullBaseUrl', 'http://example.com'); +/** + * The base directory the app resides in. Should be used if the + * application runs in a subfolder and App.fullBaseUrl is set. + */ + //Configure::write('App.base', '/my_app'); + /** * Web path to the public images directory under webroot. * If not set defaults to 'img/'