Welcome Guest, Not a member yet? Register   Sign In
Returning a view within a filter
#6

(02-16-2022, 01:15 AM)iRedds Wrote: You can return an instance of the Response class.
PHP Code:
return \Config\Services::response()->setBody(view(....)); 
Filters "after", nor the event will not work.

@kenjis  I think that in 5.x it is necessary to lay the ability to process the returned result of the filter as a string as a response.

This is exactly what I needed, thanks!
Reply


Messages In This Thread
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



Theme © iAndrew 2016 - Forum software by © MyBB