-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a method overwriting $_POST? #107
Comments
You can use $this->request->getPost()->replace($this->validation->getValues()); Remember that this not overwrite the $_POST['username']; // still original
$this->request->getPost('username'); // filtered |
Your advice was helpful. Thank you very much!! |
Is it |
I thought that I need to use $this->request->getPost()->replace($this->validation->getValues());
$this->tag->setValues($this->requrest->getPost()); |
Yes, you can set values:
|
After checking if the request failed to pass validation,
I want to use the filtered values as the form's values.
Example:
The text was updated successfully, but these errors were encountered: