File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 2121 | can be accessed directly through Route::view().
2222 |
2323 | You will have to implement the method below in a dedicated
24- | Controller, preferably the "Web/App/App" Controller class
24+ | Controller, preferably the "Web/App/Pages" Controller class
25+ | Which you will have to create in the Web/App Module
2526 |
2627 | public function views($view = '')
2728 | {
3132 | A correct way to set the 'route_views_through' config is explained below
3233 |
3334 | 'route_views_through' => 'Module/Controller/MethodName/',
35+ | OR
36+ | 'route_views_through' => 'Controller/MethodName/',
37+ | the above is used in a non module controller
3438 |
35- | e.g. 'route_views_through' => 'App/App/views/',
39+ | e.g. 'route_views_through' => 'App/Pages/views/',
40+ | OR
41+ | e.g. 'route_views_through' => 'Pages/views/',
42+ | in a non module controller
3643 |
37- | Anytime you use Route::view('a-view-name')
44+ | Note: always end specified path with a trailing slash
45+ |
46+ | Anytime you use Route::page('a-view-name')
3847 | It will be routed using the name of the view as it's route
3948 |
40- | Note: always end specified path with a trailing slash
4149 |
4250 */
4351 'route_views_through ' => '' ,
You can’t perform that action at this time.
0 commit comments