![]() |
CodeIgniter 3 - Callable Form Validation via Config file not working? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: CodeIgniter 3 - Callable Form Validation via Config file not working? (/showthread.php?tid=61936) |
CodeIgniter 3 - Callable Form Validation via Config file not working? - VeeDee - 06-01-2015 I am unable to get the callable form validation feature of CodeIgniter 3 to work when the validation rules are placed in a separate config file. I am getting the following error message: Code: A PHP Error was encountered The config file with the form validation rules are as follows (config/fvalidation.php): Code: $config['client_details'] = array( The form validation class attempting to be called is (i.e. $this->form_validation_callback_library): Code: class Form_validation_callback_library The controller is: Code: $this->load->library('form_validation_callback_library'); Any help would be greatly appreciated. Cheers, VeeDee RE: CodeIgniter 3 - Callable Form Validation via Config file not working? - Avenirer - 06-02-2015 In what location is the Form_validation_callback_library class? RE: CodeIgniter 3 - Callable Form Validation via Config file not working? - VeeDee - 06-02-2015 (06-02-2015, 01:30 AM)Avenirer Wrote: In what location is the Form_validation_callback_library class? Its in the libraries folder. i.e. application/libraries/form_validation_callback_library.php I also load it in the controller before the set_rules() take place. RE: CodeIgniter 3 - Callable Form Validation via Config file not working? - VeeDee - 06-02-2015 I don't this is currently supported on CodeIgniter 3. I created a workaround to solve it but hopefully callable validation via config files will be supported in future versions: http://stackoverflow.com/questions/30585229/codeigniter-3-callable-form-validation-by-config-file-not-working/30609283#30609283 |