CodeIgniter Forums

Full Version: validation for values in array
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

I am building API with CI v3. 
REST library automatically parses $_POST variable and puts contents in another variable.

I want form_validation library to validate the data I provide not posted ones.
Easy. For example:

PHP Code:
$data = array(
       'username' => 'johndoe',
       'password' => 'mypassword',
       'passconf' => 'mypassword'


Documented here
thank you very much!