CodeIgniter Forums
Anything like error_messages_for in CL - 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: Anything like error_messages_for in CL (/thread-7167.html)



Anything like error_messages_for in CL - El Forum - 03-27-2008

[eluser]bnewton[/eluser]
In Rails there is this error_messages_for method - is there anything like that in CL. I have looked over the things in User Gudie >Form Validation.

I guess I could I build something like that - but I'm not sure how to extend Form Validation to work like error_messages_for in Rails.

Any help or suggestion would be appreciated.

Thanks,
bnewton


Anything like error_messages_for in CL - El Forum - 03-28-2008

[eluser]Ryuuzaki92[/eluser]
do you want to show errors individually?

you can use $this->validation->{field}_error;

read more about it here: http://ellislab.com/codeigniter/user-guide/libraries/validation.html under Showing Errors Individually section.