[eluser]Phil Sturgeon[/eluser]
Nothing built in, just logic.
Something I usually do to make things much quicker, is assign my validation rules to an array then loop through them and create a stdObject which I can pass to the form.php view file.
Add
Code:
foreach($this->_validation_rules as $rule)
{
$channel->{$rule['field']} = $this->input->post($rule['field']);
}
Edit
Code:
foreach($this->_validation_rules as $rule)
{
if($this->input->post($rule['field']) !== FALSE)
{
$channel->{$rule['field']} = $this->input->post($rule['field']);
}
}
Then just pass that and use it in your forms. You could use set_value() instead, as long as you use it AFTER form_validation->run() has been called.