EllisLab/CodeIgniter — pull request #1105 by JonoB (2012-03-02 15:15:23+00:00)
Title: Allow users to specify an array for validation, instead of alway using the $_POST array

Always forcing validation through $_POST array is very restrictive, especially if you want to run validation in your models (which is where validation should be).

These changes allows users to use the form_validation->set_data() method in order to set their own validation array. If this method is used, then this array will be validated instead of the $_POST array.

Note that I have left the _reset_post_array() method to run anyway, for backwards compatability and in case the user is is posting a form at the same time anyway.

If this pull request is accepted, then I will have a go at updating the docs as well.