File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
user_guide_src/source/outgoing Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -107,9 +107,9 @@ You can store views under a **View** directory that is namespaced, and load that
107
107
PHP does not support loading non-class files from a namespace, CodeIgniter provides this feature to make it possible
108
108
to package your views together in a module-like fashion for easy re-use or distribution.
109
109
110
- If you have ``Blog `` directory that has a PSR-4 mapping set up in the :doc: `Autoloader </concepts/autoloader >` living
110
+ If you have ``example/blog `` directory that has a PSR-4 mapping set up in the :doc: `Autoloader </concepts/autoloader >` living
111
111
under the namespace ``Example\Blog ``, you could retrieve view files as if they were namespaced also. Following this
112
- example, you could load the **blog_view.php ** file from **Blog /Views ** by prepending the namespace to the view name::
112
+ example, you could load the **blog_view.php ** file from **example/blog /Views ** by prepending the namespace to the view name::
113
113
114
114
echo view('Example\Blog\Views\blog_view');
115
115
You can’t perform that action at this time.
0 commit comments