@@ -42,8 +42,10 @@ Configuration
42
42
Initial configuration is done in **app/Config/Autoload.php **. This file contains two primary
43
43
arrays: one for the classmap, and one for PSR-4 compatible namespaces.
44
44
45
+ .. _autoloader-namespaces :
46
+
45
47
Namespaces
46
- **********
48
+ ==========
47
49
48
50
The recommended method for organizing your classes is to create one or more namespaces for your
49
51
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:
55
57
The key of each row is the namespace itself. This does not need a trailing back slash.
56
58
The value is the location to the directory the classes can be found in.
57
59
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
59
68
60
- .. code-block :: console
69
+ php spark namespaces
61
70
62
- php spark namespaces
71
+ Application Namespace
72
+ =====================
63
73
64
74
By default, the application directory is namespace to the ``App `` namespace. You must namespace the controllers,
65
75
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
77
87
namespace has changed.
78
88
79
89
Classmap
80
- ********
90
+ ========
81
91
82
92
The classmap is used extensively by CodeIgniter to eke the last ounces of performance out of the system
83
93
by not hitting the file-system with extra ``is_file() `` calls. You can use the classmap to link to
0 commit comments