@@ -20,7 +20,7 @@ Renaming or Relocating the Application Directory
2020If you would like to rename your application directory or even move
2121it to a different location on your server, other than your project root, open
2222your 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
4646several different applications, simply put all of the directories located
4747inside 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
8585and a **public ** folder, and sharing a common **codeigniter4/framework **.
8686
8787The ``$systemDirectory `` variable in **app/Config/Paths.php ** inside each
8888of 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-
9492And modify the ``COMPOSER_PATH `` constant in **app/Config/Constants.php ** inside each
9593of 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+
99100Only when you change the Application Directory, see :ref: `renaming-app-directory ` and modify the paths in the **index.php ** and **spark **.
100101
101102Changing the Location of the .env File
0 commit comments