Skip to content

Commit 9084605

Browse files
committed
docs: add explanation
1 parent 87864bd commit 9084605

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

user_guide_src/source/general/configuration.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ By using the ``config()`` function:
3737

3838
.. literalinclude:: configuration/002.php
3939

40-
If no namespace is provided, it will look for the file in all defined namespaces
41-
as well as **app/Config/**.
40+
If no namespace is provided, it will look for the file in the **app/Config**
41+
folder first, and if not found, look for in the **Config** folder in all defined
42+
namespaces.
4243

4344
All of the configuration files that ship with CodeIgniter are namespaced with
4445
``Config``. Using this namespace in your application will provide the best
@@ -61,7 +62,7 @@ Creating Configuration Files
6162
When you need a new configuration, first you create a new file at your desired location.
6263
The default file location (recommended for most cases) is **app/Config**.
6364

64-
You can put configuration files in any folder you want by using a different namespace.
65+
You can put configuration files in any **Config** folder by using a different namespace.
6566

6667
The class should use the appropriate namespace, and it should extend
6768
``CodeIgniter\Config\BaseConfig`` to ensure that it can receive environment-specific settings.

0 commit comments

Comments
 (0)