File tree Expand file tree Collapse file tree
user_guide_src/source/tutorial Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ the views. Modify the ``index()`` method to look like this:
143143The code above gets all news records from the model and assigns it to a
144144variable. The value for the title is also assigned to the ``$data['title'] ``
145145element 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 **
147147and add the next piece of code.
148148
149149.. literalinclude :: news_section/005.php
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments