Skip to content

Commit fa236f7

Browse files
committed
docs: change view file name
Name by the controller method.
1 parent d169485 commit fa236f7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

user_guide_src/source/tutorial/news_section.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ the views. Modify the ``index()`` method to look like this:
143143
The code above gets all news records from the model and assigns it to a
144144
variable. The value for the title is also assigned to the ``$data['title']``
145145
element and all data is passed to the views. You now need to create a
146-
view to render the news items. Create **app/Views/news/overview.php**
146+
view to render the news items. Create **app/Views/news/index.php**
147147
and add the next piece of code.
148148

149149
.. literalinclude:: news_section/005.php

user_guide_src/source/tutorial/news_section/004.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function index()
1616
];
1717

1818
return view('templates/header', $data)
19-
. view('news/overview')
19+
. view('news/index')
2020
. view('templates/footer');
2121
}
2222

0 commit comments

Comments
 (0)