CodeIgniter Forums
valid_emails - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: valid_emails (/showthread.php?tid=8462)



valid_emails - El Forum - 05-19-2008

[eluser]Unknown[/eluser]
Using CI 1.6.2

When using valid_emails within my validation rules I get the following message included in my validation error_string:

Unable to access an error message corresponding to your field name.

To get around this I had to add an additional line to the validation_lang.php in system/languages/english to get it working:

$lang['valid_emails'] = "The %s field must contain all valid email addresses.";

The line I used to call the validation method was:

$rules['email_to'] = 'trim|required|min_length[5]|max_length[255]|valid_emails';

Thanks.


valid_emails - El Forum - 11-02-2008

[eluser]Natebot[/eluser]
I came across this same experience today using 1.6.3.

I don't know if this is fixed in 1.7 or if bugs in 1.6.3 will continue to be documented or fixed.
A search for "valid_emails" didn't come up with anything on the bug tracker so I added it to the bug tracking list.


valid_emails - El Forum - 11-06-2008

[eluser]Derek Allard[/eluser]
There is a $lang['valid_emails'] line in the 1.7 language files. Could you update and let us know if the issue persists please.


valid_emails - El Forum - 11-07-2008

[eluser]Natebot[/eluser]
Thanks Derek, that's good to hear. It was a trivial issue so I'm sure it works if the language line is there. I will be upgrading for development but I am keeping production at 1.6.3 for now. As a bit of guidance could you tell us if we should continue to report 1.6.3 issues? Is there support for older versions?


valid_emails - El Forum - 11-07-2008

[eluser]Derek Allard[/eluser]
Yes, absolutely report them - we'll fix anything up and get it into the codebase. Obviously check the bug tracker first (I know you know this, and already did so - its for the benefit of anyone else reading this) Smile