Welcome Guest, Not a member yet? Register   Sign In
Form validation config & dynamic
#3

Alternatively, you could load the config file, retrieve the rules, and set them manually before setting your additional rules, then leave the group name out of the call to form_validation->run().

PHP Code:
case 'tickets':
 
   // Load the form_validation config. Passing true for the second argument loads
 
   // the values into the 'form_validation' config item.
 
   $this->config->load('form_validation'true);

 
   $this->form_validation->set_rules($this->config->item('form_tickets''form_validation'));

 
   $tickets $this->config->item('tb_tickets');
 
   // ... 
Reply


Messages In This Thread
Form validation config & dynamic - by BABYpanda - 03-17-2015, 12:03 PM
RE: Form validation config & dynamic - by mwhitney - 03-18-2015, 10:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB