Last updated
Last updated
In order to protect informations to pass through, we need to validate the user's request through a validator and extract and sanitize each request to avoid special characters and converts code to htmlentities.
$route - Is used to redirect if the validator detects an error in validating the request.
$input_to_validate - An array of input names with a value of the validation types.
Let's look some example of request validations
In views:
In routes:
In controller:
Sprnva has a built in request validator and it's easy to use.