Skip to content

docs: fix managing_apps.rst #5426

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

Merged
merged 4 commits into from
Dec 2, 2021
Merged
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
27 changes: 14 additions & 13 deletions user_guide_src/source/general/managing_apps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Managing your Applications
##########################

By default, it is assumed that you only intend to use CodeIgniter to
manage one application, which you will build in your **application**
manage one application, which you will build in your **app**
directory. It is possible, however, to have multiple sets of
applications that share a single CodeIgniter installation, or even to
rename or relocate your application directory.
Expand All @@ -16,18 +16,18 @@ 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 44)::

public $appDirectory = '/path/to/your/application';
public $appDirectory = '/path/to/your/app';

You will need to modify two additional files in your project root, so that
they can find the ``Paths`` configuration file:
they can find the **Paths** configuration file:

- ``/spark`` runs command line apps; the path is specified on or about line 35::
- **/spark** runs command line apps; the path is specified on or about line 35::

$pathsConfig = 'app/Config/Paths.php';
// ^^^ Change this line if you move your application folder


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

$pathsConfig = FCPATH . '../app/Config/Paths.php';
Expand All @@ -41,8 +41,8 @@ If you would like to share a common CodeIgniter framework installation, to manag
several different applications, simply put all of the directories located
inside your application directory into their own (sub)-directory.

For example, let's say you want to create two applications, named "foo"
and "bar". You could structure your application project directories like this:
For example, let's say you want to create two applications, named **foo**
and **bar**. You could structure your application project directories like this:

.. code-block:: text

Expand All @@ -51,21 +51,22 @@ and "bar". You could structure your application project directories like this:
/public
/tests
/writable
spark
/bar
/app
/public
/tests
/writable
spark
/codeigniter
/system
/docs

This would have two apps, "foo" and "bar", both having standard application directories
and a ``public`` folder, and sharing a common codeigniter framework.
This would have two apps, **foo** and **bar**, both having standard application directories
and a **public** folder, and sharing a common **codeigniter** framework.

The ``index.php`` inside each application would refer to its own configuration,
The **index.php** inside each application would refer to its own configuration,
``../app/Config/Paths.php``, and the ``$systemDirectory`` variable inside each
of those would be set to refer to the shared common "system" folder.
of those would be set to refer to the shared common **system** folder.

If either of the applications had a command-line component, then you would also
modify ``spark`` inside each application's project folder, as directed above.
modify **spark** inside each application's project folder, as directed above.