Skip to content

Commit d5c90f1

Browse files
committed
docs: make view filename lowercase
Capital letters can also be used, but they are often lowercased.
1 parent 93f6ff9 commit d5c90f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

user_guide_src/source/outgoing/views.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Using the example controller you created in the controller page, let’s add a v
1919
Creating a View
2020
===============
2121

22-
Using your text editor, create a file called ``BlogView.php`` and put this in it::
22+
Using your text editor, create a file called ``blogview.php`` and put this in it::
2323

2424
<html>
2525
<head>
@@ -53,7 +53,7 @@ Now, open the controller file you made earlier called ``Blog.php``, and replace
5353
{
5454
public function index()
5555
{
56-
echo view('BlogView');
56+
echo view('blogview');
5757
}
5858
}
5959

@@ -111,7 +111,7 @@ If you have ``Blog`` directory that has a PSR-4 mapping set up in the :doc:`Auto
111111
under the namespace ``Example\Blog``, you could retrieve view files as if they were namespaced also. Following this
112112
example, you could load the **BlogView** file from **/blog/views** by prepending the namespace to the view name::
113113

114-
echo view('Example\Blog\Views\BlogView');
114+
echo view('Example\Blog\Views\blogview');
115115

116116
Caching Views
117117
=============

0 commit comments

Comments
 (0)