Skip to content

Commit 0f16cae

Browse files
authored
Merge pull request #6386 from totoprayogo1916/docs
docs: fix `$pathsConfig` line number
2 parents e34c5e3 + 580fa26 commit 0f16cae

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

user_guide_src/source/general/managing_apps.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,11 @@ your main **app/Config/Paths.php** and set a *full server path* in the
4242
You will need to modify two additional files in your project root, so that
4343
they can find the **Paths** configuration file:
4444

45-
- **/spark** runs command line apps; the path is specified on or about line 49:
45+
- **/spark** runs command line apps.
4646

4747
.. literalinclude:: managing_apps/002.php
4848

49-
- **/public/index.php** is the front controller for your webapp; the config
50-
path is specified on or about line 20:
49+
- **/public/index.php** is the front controller for your webapp.
5150

5251
.. literalinclude:: managing_apps/003.php
5352

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?php
22

3-
$pathsConfig = 'app/Config/Paths.php';
3+
// Load our paths config file
4+
// This is the line that might need to be changed, depending on your folder structure.
5+
require FCPATH . '../app/Config/Paths.php';
46
// ^^^ Change this line if you move your application folder
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?php
22

3-
$pathsConfig = FCPATH . '../app/Config/Paths.php';
4-
// ^^^ Change this if you move your application folder
3+
// Load our paths config file
4+
// This is the line that might need to be changed, depending on your folder structure.
5+
require FCPATH . '../app/Config/Paths.php';
6+
// ^^^ Change this line if you move your application folder

0 commit comments

Comments
 (0)