From cfc33ceb449b12d322812a542546cf9d933ec706 Mon Sep 17 00:00:00 2001 From: totoprayogo1916 Date: Sun, 3 Jan 2021 20:22:19 +0700 Subject: [PATCH] fix userguide config path --- user_guide_src/source/general/managing_apps.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/user_guide_src/source/general/managing_apps.rst b/user_guide_src/source/general/managing_apps.rst index b6ac7072006b..a5d9695e4ede 100644 --- a/user_guide_src/source/general/managing_apps.rst +++ b/user_guide_src/source/general/managing_apps.rst @@ -14,23 +14,23 @@ Renaming or Relocating the Application Directory If you would like to rename your application directory or even move it to a different location on your server, other than your project root, open your main **app/Config/Paths.php** and set a *full server path* in the -``$appDirectory`` variable (at about line 38):: +``$appDirectory`` variable (at about line 45):: public $appDirectory = '/path/to/your/application'; You will need to modify two additional files in your project root, so that they can find the ``Paths`` configuration file: -- ``/spark`` runs command line apps; the path is specified on or about line 36:: +- ``/spark`` runs command line apps; the path is specified on or about line 44:: - require 'app/Config/Paths.php'; + require realpath('app/Config/Paths.php') ?: 'app/Config/Paths.php'; // ^^^ Change this if you move your application folder - ``/public/index.php`` is the front controller for your webapp; the config - path is specified on or about line 16:: + path is specified on or about line 28:: - $pathsPath = FCPATH . '../app/Config/Paths.php'; + require realpath(FCPATH . '../app/Config/Paths.php') ?: FCPATH . '../app/Config/Paths.php'; // ^^^ Change this if you move your application folder