• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Complex Form Validation Question. *ANSWERED*

#1
[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?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.