Loading validation function from library? - 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: Loading validation function from library? (/showthread.php?tid=22337) |
Loading validation function from library? - El Forum - 09-05-2009 [eluser]Maximilian Schoening[/eluser] Hi, I have the following function inside a controller: Code: /** ---------------------------------------------------------------------- As you can see I am validating the password field with a custom validation function (authenticate()) but all this function does is call another function inside a library. Can I load the library function login() directly into the validation rules? Thanks, Max Loading validation function from library? - El Forum - 09-05-2009 [eluser]pistolPete[/eluser] [quote author="Maximilian Schoening" date="1252201535"]Can I load the library function login() directly into the validation rules[/quote] Try this extension: http://codeigniter.com/wiki/MY_Form_validation_-_Callbacks_into_Models/ |