CodeIgniter Forums
Multiple set_message with min_length rule??? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: Multiple set_message with min_length rule??? (/thread-29048.html)



Multiple set_message with min_length rule??? - El Forum - 03-29-2010

[eluser]123wesweat[/eluser]
Hi there,

How can i set different messages for the min_length rule??
like
Code:
$val->set_message('min_length','field X must have a min. of 5 chars')
and
Code:
$val->set_message('min_length','field Y must have a min. of 60 chars')

regards,