Skip to content

Commit 7d15138

Browse files
committed
docs: fix namespace directory explanation
1 parent cb64680 commit 7d15138

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

user_guide_src/source/outgoing/views.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ You can store views under a **View** directory that is namespaced, and load that
107107
PHP does not support loading non-class files from a namespace, CodeIgniter provides this feature to make it possible
108108
to package your views together in a module-like fashion for easy re-use or distribution.
109109

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
111111
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::
113113

114114
echo view('Example\Blog\Views\blog_view');
115115

0 commit comments

Comments
 (0)