Validation callback bug? |
Hello team CodeIgniter developers, I would first like to thank you guys for the work done to build this framework.
Would you like to post a bug I found in the validation of the data using a callback function. When I try to use a callback function to assist in my validations. The message that appears, appears in this way and does not work: "There is no error message to the field with the name user_email (check_email)."; NOTE: Check_email is my callback function ... After much searching on the internet, I found this in a forum: Solution: 1. Create MY_Form_validation.php file in the libraries folder and paste the following code in it. PHP Code: if (! defined ( 'BasePath')) exit ( 'No direct script access allowed'); And change PHP Code: if ($this->form_validation->run() == FALSE) The link to the forum is this: http://stackoverflow.com/questions/32665...9#38815609 Sorry if I was not clear, it is that I am from Brazil and do not speak English, I am using Google translator. |
Messages In This Thread |
Validation callback bug? - by Douglas Fernando - 09-08-2016, 04:01 PM
RE: Validation callback bug? - by Joel Catantan - 09-08-2016, 08:08 PM
RE: Validation callback bug? - by Avenirer - 09-08-2016, 10:51 PM
RE: Validation callback bug? - by InsiteFX - 09-09-2016, 05:10 AM
RE: Validation callback bug? - by Douglas Fernando - 09-09-2016, 04:35 PM
RE: Validation callback bug? - by InsiteFX - 09-10-2016, 12:15 PM
RE: Validation callback bug? - by Douglas Fernando - 09-10-2016, 04:53 PM
RE: Validation callback bug? - by InsiteFX - 09-11-2016, 03:43 AM
|