Extended Validation library won't work. - 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: Extended Validation library won't work. (/showthread.php?tid=6591) |
Extended Validation library won't work. - El Forum - 03-04-2008 [eluser]patbert[/eluser] I added a few functions to the Validation library: http://pastebin.com/m4f347558 Those functions work perfectly if I keep them in my controller and use something like: $rules['name'] = "callback_checkname|required|min_length[3]|max_length[30]"; But when I use my validation library and remove the callback_ part they fail to work. The file I created is called my_validation.php and as far as I can tell it is loaded ok. What am I doing wrong here? Extended Validation library won't work. - El Forum - 03-04-2008 [eluser]wiredesignz[/eluser] You are using $this->auth->check inside the validation class is one issue. Extended Validation library won't work. - El Forum - 03-05-2008 [eluser]xwero[/eluser] If you extend the Validation library you have to check if the class and the model are known. As a part of my validation overwrite i added a model_check which has this code Code: function model_check($field,$param) |