Extended Validation library won't work. |
[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?
[eluser]wiredesignz[/eluser]
You are using $this->auth->check inside the validation class is one issue.
[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) |
Welcome Guest, Not a member yet? Register Sign In |