Error : Callback fucntion is not getting called in New Version of CI 1.7.2 - 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: Error : Callback fucntion is not getting called in New Version of CI 1.7.2 (/showthread.php?tid=29921) |
Error : Callback fucntion is not getting called in New Version of CI 1.7.2 - El Forum - 04-26-2010 [eluser]Amrish[/eluser] Code: function test() { I am using code for calling call back function but it is giving me error as Code: Fatal error: Call to undefined method CI::test() in C:\xampp\htdocs\vendor-tracking\www\system\libraries\Form_validation.php on line 589 Error : Callback fucntion is not getting called in New Version of CI 1.7.2 - El Forum - 04-26-2010 [eluser]danmontgomery[/eluser] Is this in the model? Callback functions need to be in the controller object Error : Callback fucntion is not getting called in New Version of CI 1.7.2 - El Forum - 04-26-2010 [eluser]Amrish[/eluser] Both function is present in the controller file. Also validation function is working like numeric, required but callback is not getting called. So i check in the Form_Validation Class, comment the continue statement at the line no : 585, found that CI object is not have the access. Code: if ($callback === TRUE) Error : Callback fucntion is not getting called in New Version of CI 1.7.2 - El Forum - 04-26-2010 [eluser]danmontgomery[/eluser] test() isn't recognized as a member of the controller object. Can you post the entire contents of that file? Error : Callback fucntion is not getting called in New Version of CI 1.7.2 - El Forum - 04-26-2010 [eluser]Amrish[/eluser] See Attached File Error : Callback fucntion is not getting called in New Version of CI 1.7.2 - El Forum - 04-27-2010 [eluser]theshiftexchange[/eluser] The function test should accept a variable, and return a BOOL (not "EXIT") or it will cause problems. Code: function test($str) Error : Callback fucntion is not getting called in New Version of CI 1.7.2 - El Forum - 04-27-2010 [eluser]Amrish[/eluser] I got solution from this link : Code: http://ellislab.com/forums/viewthread/143057/ |