Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix $pathsConfig line number #6386

Merged
merged 3 commits into from
Aug 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions user_guide_src/source/general/managing_apps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,11 @@ your main **app/Config/Paths.php** and set a *full server path* in the
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 49:
- **/spark** runs command line apps.

.. literalinclude:: managing_apps/002.php

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

.. literalinclude:: managing_apps/003.php

Expand Down
4 changes: 3 additions & 1 deletion user_guide_src/source/general/managing_apps/002.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php

$pathsConfig = 'app/Config/Paths.php';
// Load our paths config file
// This is the line that might need to be changed, depending on your folder structure.
totoprayogo1916 marked this conversation as resolved.
Show resolved Hide resolved
require FCPATH . '../app/Config/Paths.php';
// ^^^ Change this line if you move your application folder
6 changes: 4 additions & 2 deletions user_guide_src/source/general/managing_apps/003.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php

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