Welcome Guest, Not a member yet? Register   Sign In
Modify validation library. (return fields with errors NO error string)
#1

[eluser]Atas[/eluser]
Hello. Sorry my English.
I add the following lines in my validation library (CI 1.6.1).

Line: 39
var $critical_fields = array();

Line: 240
$this->critical_fields[$field] = $field;

Line: 322
$this->critical_fields[$field] = $field;

Now i can store the errors fields in array.

In the controller:
$data['fields_errors'] = $this->validation->critical_fields;

See attached file.

Exist other way to do that ?




Theme © iAndrew 2016 - Forum software by © MyBB