CodeIgniter Forums

Full Version: Anything like error_messages_for in CL
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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

El Forum

[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-gui...ation.html under Showing Errors Individually section.