Welcome Guest, Not a member yet? Register   Sign In
valid_emails
#1

[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.


Messages In This Thread
valid_emails - by El Forum - 05-19-2008, 08:07 AM
valid_emails - by El Forum - 11-02-2008, 09:20 PM
valid_emails - by El Forum - 11-06-2008, 10:08 PM
valid_emails - by El Forum - 11-07-2008, 12:37 PM
valid_emails - by El Forum - 11-07-2008, 01:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB