Form validation config & dynamic |
03-17-2015, 12:03 PM
(This post was last modified: 03-17-2015, 12:03 PM by BABYpanda. Edit Reason: added )
Hello,
I am trying to achieve something with the Form Validation in CI 2.2. The code I am using is for the validation is: PHP Code: $this->load->library('form_validation'); Then the config file 'form_validation.php': PHP Code: <?php if(!defined('BASEPATH')) exit('No direct script access allowed'); And here a custom function which is also been called in the first code snippet: PHP Code: private function setConfigValidations($page) { As you can see, I am trying to get one bit loaded using a config, and some fields must be dynamically added since they are retrieved in the config. But somehow, I am unable to achieve this. Is it somehow possible to load certain validations in a config and others dynamically? Thanks in advance. Kindest regards, Reno |
Messages In This Thread |
Form validation config & dynamic - by BABYpanda - 03-17-2015, 12:03 PM
RE: Form validation config & dynamic - by silentium - 03-17-2015, 07:49 PM
RE: Form validation config & dynamic - by mwhitney - 03-18-2015, 10:36 AM
RE: Form validation config & dynamic - by BABYpanda - 03-18-2015, 11:52 AM
RE: Form validation config & dynamic - by silentium - 03-18-2015, 12:10 PM
|