CodeIgniter Forums
Custom Error Messages - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Custom Error Messages (/showthread.php?tid=42439)



Custom Error Messages - El Forum - 06-07-2011

[eluser]NotoriousWebmaster[/eluser]
So, I've got a form, which gets some data to my controller, which then fetches some more data from the database, through the model. But what if the model comes up short? Turns out the ID the user put in the form isn't right, so the model can't fetch the info form the db.

I'd like to be able to push an error message back to the form via the validation_errors() function. Is this possible?

Thx,
- AAA