![]() |
Hello,
I have a filter that runs before all requests and performs some various checks in a database prior to executing the request. If a specific condition is met, I want to render a certain view and stop the action of the controller. In the documentation it says "...You can easily do this by returning [b]any non-empty[/b] result" When I put: Code: return view('myviewname'); it doesn't load that view and instead just keeps processing the request through the targeted controller. The only way I've found to get that view to render within the filter is to put: Code: echo view('myviewname'); Am I interpreting the documentation incorrectly? Or is this a bug? Shouldn't returning a view stop the action of the requested controller? |
Messages In This Thread |
Returning a view within a filter - by derekairdrie - 02-15-2022, 05:06 PM
RE: Returning a view within a filter - by kenjis - 02-15-2022, 07:52 PM
RE: Returning a view within a filter - by iRedds - 02-16-2022, 01:15 AM
RE: Returning a view within a filter - by derekairdrie - 02-17-2022, 08:14 AM
RE: Returning a view within a filter - by kenjis - 02-16-2022, 02:57 AM
RE: Returning a view within a filter - by iRedds - 02-16-2022, 07:03 AM
|