Skip to content

Commit

Permalink
fix userguide config path
Browse files Browse the repository at this point in the history
  • Loading branch information
totoprayogo1916 committed Jan 3, 2021
1 parent 3cff921 commit cfc33ce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions user_guide_src/source/general/managing_apps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit cfc33ce

Please sign in to comment.