From d3d514b4892c7c140cb210bf22d2d33f2c9b1e16 Mon Sep 17 00:00:00 2001 From: kenjis Date: Thu, 2 Dec 2021 10:32:39 +0900 Subject: [PATCH 1/4] docs: fix application folder name --- user_guide_src/source/general/managing_apps.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user_guide_src/source/general/managing_apps.rst b/user_guide_src/source/general/managing_apps.rst index 21fcebdf9407..92c152c5dd63 100644 --- a/user_guide_src/source/general/managing_apps.rst +++ b/user_guide_src/source/general/managing_apps.rst @@ -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. @@ -16,7 +16,7 @@ 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: From c96224688927a3c64303fa1a817e490cfdf0a5f1 Mon Sep 17 00:00:00 2001 From: kenjis Date: Thu, 2 Dec 2021 10:33:42 +0900 Subject: [PATCH 2/4] docs: decorate file paths with ** --- .../source/general/managing_apps.rst | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/user_guide_src/source/general/managing_apps.rst b/user_guide_src/source/general/managing_apps.rst index 92c152c5dd63..6e156cd783d5 100644 --- a/user_guide_src/source/general/managing_apps.rst +++ b/user_guide_src/source/general/managing_apps.rst @@ -19,15 +19,15 @@ your main **app/Config/Paths.php** and set a *full server path* in the 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'; @@ -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 @@ -60,12 +60,12 @@ and "bar". You could structure your application project directories like this: /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. From 95581fd3bb9f91a2e2fbd5e785f0738050bf3d31 Mon Sep 17 00:00:00 2001 From: kenjis Date: Thu, 2 Dec 2021 10:53:25 +0900 Subject: [PATCH 3/4] docs: there is no `docs` folder now --- user_guide_src/source/general/managing_apps.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/user_guide_src/source/general/managing_apps.rst b/user_guide_src/source/general/managing_apps.rst index 6e156cd783d5..d9a3e8e05d77 100644 --- a/user_guide_src/source/general/managing_apps.rst +++ b/user_guide_src/source/general/managing_apps.rst @@ -58,7 +58,6 @@ and **bar**. You could structure your application project directories like this: /writable /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. From a2aed177b40949eeac58f4dde61a108916823be5 Mon Sep 17 00:00:00 2001 From: kenjis Date: Thu, 2 Dec 2021 10:56:49 +0900 Subject: [PATCH 4/4] docs: add `spark` file --- user_guide_src/source/general/managing_apps.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/user_guide_src/source/general/managing_apps.rst b/user_guide_src/source/general/managing_apps.rst index d9a3e8e05d77..6e2279ede97c 100644 --- a/user_guide_src/source/general/managing_apps.rst +++ b/user_guide_src/source/general/managing_apps.rst @@ -51,11 +51,13 @@ and **bar**. You could structure your application project directories like this: /public /tests /writable + spark /bar /app /public /tests /writable + spark /codeigniter /system