CodeIgniter Forums
Complex Form Validation Question. *ANSWERED* - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Complex Form Validation Question. *ANSWERED* (/showthread.php?tid=18198)



Complex Form Validation Question. *ANSWERED* - El Forum - 04-28-2009

[eluser]davido[/eluser]
*I forgot I already solved this problem before*
I replace the empty parameters with the controller/method group I want, because CI is so awesome!
Code:
$this->form_validation->run('housing_admin/edit_application')


Ok so I wan trying to use a controller/method specific form_validation config file. one of these methods takes an argument, this apparently breaks using a form_validation config file.

In the Form_validation library at line 296 there is this statement:
Code:
$uri = ($group == '') ? trim($this->CI->uri->ruri_string(), '/') : $group;

This makes my
Code:
'housing_admin/edit_application'
entry in the config file useless because the Form_validation library is looking for something like
Code:
'housing_admin/edit_application/113485'
(the number is a DB record key). Is there something I'm doing wrong, or is this intended to happen?