Skip to content

Commit 52f9638

Browse files
committed
docs: Update "Managing your Applications"
1 parent 246cbd4 commit 52f9638

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

user_guide_src/source/general/managing_apps.rst

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Renaming or Relocating the Application Directory
2020
If you would like to rename your application directory or even move
2121
it to a different location on your server, other than your project root, open
2222
your main **app/Config/Paths.php** and set a *full server path* in the
23-
``$appDirectory`` variable (at about line 44):
23+
``$appDirectory`` variable (at about line 45):
2424

2525
.. literalinclude:: managing_apps/001.php
2626

@@ -46,26 +46,26 @@ If you would like to share a common CodeIgniter framework installation, to manag
4646
several different applications, simply put all of the directories located
4747
inside your application directory into their own (sub)-directory.
4848

49-
For example, let's say you want to create two applications, named **foo**
50-
and **bar**. You could structure your application project directories like this:
49+
For example, let's say you want to create two applications, named **blog**
50+
and **shop**. You could structure your application project directories like this:
5151

5252
.. code-block:: text
5353
54-
foo/
54+
blog/
5555
app/
5656
public/
5757
tests/
5858
writable/
5959
env
60-
phpunit.xml.dist
60+
phpunit.dist.xml
6161
spark
62-
bar/
62+
shop/
6363
app/
6464
public/
6565
tests/
6666
writable/
6767
env
68-
phpunit.xml.dist
68+
phpunit.dist.xml
6969
spark
7070
vendor/
7171
autoload.php
@@ -77,25 +77,26 @@ and **bar**. You could structure your application project directories like this:
7777

7878
.. code-block:: text
7979
80-
foo/
81-
bar/
80+
blog/
81+
shop/
8282
codeigniter4/system/
8383
84-
This would have two apps, **foo** and **bar**, both having standard application directories
84+
This would have two apps, **blog** and **shop**, both having standard application directories
8585
and a **public** folder, and sharing a common **codeigniter4/framework**.
8686

8787
The ``$systemDirectory`` variable in **app/Config/Paths.php** inside each
8888
of those would be set to refer to the shared common **codeigniter4/framework** folder:
8989

9090
.. literalinclude:: managing_apps/005.php
9191

92-
.. note:: If you install CodeIgniter from the Zip file, the ``$systemDirectory`` would be ``__DIR__ . '/../../../codeigniter4/system'``.
93-
9492
And modify the ``COMPOSER_PATH`` constant in **app/Config/Constants.php** inside each
9593
of those:
9694

9795
.. literalinclude:: managing_apps/004.php
9896

97+
.. note:: If you install CodeIgniter from the Zip file, the ``$systemDirectory`` would be ``__DIR__ . '/../../../codeigniter4/system'``.
98+
If you don't use Composer, you don't have to edit the ``COMPOSER_PATH``.
99+
99100
Only when you change the Application Directory, see :ref:`renaming-app-directory` and modify the paths in the **index.php** and **spark**.
100101

101102
Changing the Location of the .env File

user_guide_src/source/general/managing_apps/001.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Paths
66
{
77
// ...
88

9-
public $appDirectory = '/path/to/your/app';
9+
public string $appDirectory = '/path/to/your/app';
1010

1111
// ...
1212
}

0 commit comments

Comments
 (0)