File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
user_guide_src/source/general Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 17
17
18
18
// Load our paths config file
19
19
// This is the line that might need to be changed, depending on your folder structure.
20
- require realpath ( FCPATH . ' ../app/Config/Paths.php ' ) ?: FCPATH . '../app/Config/Paths.php ' ;
20
+ $ pathsConfig = FCPATH . '../app/Config/Paths.php ' ;
21
21
// ^^^ Change this if you move your application folder
22
+ require realpath ($ pathsConfig ) ?: $ pathsConfig ;
22
23
23
24
$ paths = new Config \Paths ();
24
25
Original file line number Diff line number Diff line change @@ -33,8 +33,9 @@ if (strpos(PHP_SAPI, 'cgi') === 0)
33
33
define ('FCPATH ' , __DIR__ . DIRECTORY_SEPARATOR . 'public ' . DIRECTORY_SEPARATOR );
34
34
35
35
// Load our paths config file
36
- require realpath ( ' app/Config/Paths.php ' ) ?: 'app/Config/Paths.php ' ;
36
+ $ pathsConfig = 'app/Config/Paths.php ' ;
37
37
// ^^^ Change this line if you move your application folder
38
+ require realpath ($ pathsConfig ) ?: $ pathsConfig ;
38
39
39
40
$ paths = new Config \Paths ();
40
41
Original file line number Diff line number Diff line change @@ -23,14 +23,14 @@ they can find the ``Paths`` configuration file:
23
23
24
24
- ``/spark `` runs command line apps; the path is specified on or about line 36::
25
25
26
- require realpath('app/Config/Paths.php') ?: 'app/Config/Paths.php';
27
- // ^^^ Change this if you move your application folder
26
+ $pathsConfig = 'app/Config/Paths.php';
27
+ // ^^^ Change this line if you move your application folder
28
28
29
29
30
30
- ``/public/index.php `` is the front controller for your webapp; the config
31
31
path is specified on or about line 20::
32
32
33
- require realpath(FCPATH . '../app/Config/Paths.php') ?: FCPATH . '../app/Config/Paths.php';
33
+ $pathsConfig = FCPATH . '../app/Config/Paths.php';
34
34
// ^^^ Change this if you move your application folder
35
35
36
36
You can’t perform that action at this time.
0 commit comments