![]() |
I want to automatically add variables to each incoming POST, so I thought filters would be helpful, however, I can't see a way to get to the POST vars in the filter class
PHP Code: class Filters extends BaseConfig the PostFilters class: PHP Code: class PostFilter implements FilterInterface I've also tried: PHP Code: public function before(RequestInterface $request, $arguments = null) PHP Code: public function before(RequestInterface $request, $arguments = null) It is adding the varaibles to the RequestInterface $request (from log_messages, I see this). Even the direct $_POST didn't add it to the post vars in the controller. Where should I be doing this (or how do I make the filters see the $_POST vars and add to them)? Thanks. |
Messages In This Thread |
Filters and $_POST (or $request post vars) - by Kaosweaver - 07-27-2021, 05:38 AM
RE: Filters and $_POST (or $request post vars) - by Gary - 07-29-2021, 02:19 PM
RE: Filters and $_POST (or $request post vars) - by Kaosweaver - 08-02-2021, 06:36 AM
RE: Filters and $_POST (or $request post vars) - by paliz - 08-02-2021, 10:10 AM
RE: Filters and $_POST (or $request post vars) - by Kaosweaver - 08-10-2021, 05:47 AM
|