Validation start.
POST data
---
array (
'name' => 'Test Johnson',
'nick' => '',
'email' => '',
'message' => '',
'sample' => '',
)
After validation
array (
'errors' =>
array (
'nick' => 'The nick field is required!',
'message' => 'The message field is required!',
'email' => 'Please you give a valid e-mail address!',
),
'validated' =>
array (
'name' => 'Test Johnson',
),
)
|