Code for feature request (validation_errors_array()) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Code for feature request (validation_errors_array()) (/showthread.php?tid=49597) |
Code for feature request (validation_errors_array()) - El Forum - 02-26-2012 [eluser]Pnux[/eluser] Since im not sure how much uservoice likes code on their site, im pasting the code here since its a really simple one. It also might be useful for somebody else. Code: // ------------------------------------------------------------------------ Example output: Code: array(3) { The idea is not to promote my request in here, so with anything related to the request itself, please use http://codeigniter.uservoice.com/forums/40508-codeigniter-reactor/suggestions/2629928-add-function-to-get-the-array-instead-of-a-string If you want to use the code, you need to place it on ./system/helpers/form_helper.php. This could also be added to [MY_]Form_validation, but since validation_errors() is a function in the helper, i decided to go there for this one as well. Code for feature request (validation_errors_array()) - El Forum - 02-27-2012 [eluser]Aken[/eluser] You should submit this as a pull request on CodeIgniter's Github if you can. |