Skip to content

Commit cfe8b09

Browse files
committed
docs: add new section titles "Confirming Namespaces" and "Application Namespace"
1 parent 652bb44 commit cfe8b09

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

user_guide_src/source/concepts/autoloader.rst

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ Configuration
4242
Initial configuration is done in **app/Config/Autoload.php**. This file contains two primary
4343
arrays: one for the classmap, and one for PSR-4 compatible namespaces.
4444

45+
.. _autoloader-namespaces:
46+
4547
Namespaces
46-
**********
48+
==========
4749

4850
The recommended method for organizing your classes is to create one or more namespaces for your
4951
application's files. This is most important for any business-logic related classes, entity classes,
@@ -55,11 +57,19 @@ those classes can be found in:
5557
The key of each row is the namespace itself. This does not need a trailing back slash.
5658
The value is the location to the directory the classes can be found in.
5759

58-
.. note:: You can check the namespace configuration by ``spark namespaces`` command:
60+
.. _confirming-namespaces:
61+
62+
Confirming Namespaces
63+
=====================
64+
65+
You can check the namespace configuration by ``spark namespaces`` command:
66+
67+
.. code-block:: console
5968
60-
.. code-block:: console
69+
php spark namespaces
6170
62-
php spark namespaces
71+
Application Namespace
72+
=====================
6373

6474
By default, the application directory is namespace to the ``App`` namespace. You must namespace the controllers,
6575
libraries, or models in the application directory, and they will be found under the ``App`` namespace.
@@ -77,7 +87,7 @@ You will need to modify any existing files that are referencing the current name
7787
namespace has changed.
7888

7989
Classmap
80-
********
90+
========
8191

8292
The classmap is used extensively by CodeIgniter to eke the last ounces of performance out of the system
8393
by not hitting the file-system with extra ``is_file()`` calls. You can use the classmap to link to

0 commit comments

Comments
 (0)