![]() |
You can return an instance of the Response class.
PHP Code: return \Config\Services::response()->setBody(view(....)); @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. |
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
|