![]() |
Problem with custom callback. - 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: Problem with custom callback. (/showthread.php?tid=12927) |
Problem with custom callback. - El Forum - 11-05-2008 [eluser]Bramme[/eluser] Okay, I'm having some issues with custom callbacks. I don't feel like setting them in my controller, so I made a MY_Form_validation library. It looks like this: Code: class MY_Form_validation extends CI_Form_validation { However, it's not working. The class is being loaded correctly, because I get syntax errors, but the moment I use show_error() in my unique function to debug it, it fails, showing only the other validation rules. Can anybody help me out? Am I doing something wrong or is this is a bug? edit: god damn. Even putting it in my controller, using the set_message method and the call_back prefix in my config file doesn't seem to work... Problem with custom callback. - El Forum - 11-05-2008 [eluser]GSV Sleeper Service[/eluser] where does $table_field come from? you're only passing $str and $field to your method. Problem with custom callback. - El Forum - 11-05-2008 [eluser]Bramme[/eluser] oh, right, I changed that to $field allready. Still, I would've expected a warning of some sorts there (undefined variable etc) but! Nothing! Problem with custom callback. - El Forum - 11-06-2008 [eluser]Bramme[/eluser] Please, does anybody else have a clue? I still haven't got this to work. What am I doing wrong??? Problem with custom callback. - El Forum - 11-07-2008 [eluser]hostcord[/eluser] It's obvious show_error stops the script so why not log the message to an error file or just echo success or failure. That's how I got it to work anyway. ![]() |