CodeIgniter Forums
form validation callbacks aren't being called - 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: form validation callbacks aren't being called (/showthread.php?tid=26864)

Pages: 1 2


form validation callbacks aren't being called - El Forum - 07-04-2010

[eluser]Bui Duc Long[/eluser]
thank you flaky!

Strange that the callbacks was worked on other project of mine, but not this time.


form validation callbacks aren't being called - El Forum - 07-13-2010

[eluser]niurexx[/eluser]
[quote author="flaky" date="1264528816"]you should extend Form validation
Code:
class MY_Form_validation extends CI_Form_validation{
    
    function run($module = '', $group = ''){
        (is_object($module)) AND $this->CI = &$module;
            return parent::run($group);
    }
    
}

and when using form validation insert $this into run()
Code:
if($this->form_validation->run($this))
.
.
.
[/quote]

i've tried to use your suggestion but my form still not working.. is there any server or php level requirement to run this hmvc ?

my php version is : PHP Version 5.2.13
mysql version is : MySQL client version: 4.1.22

i've tried to install fresh ci and insert simple callback vallidation but it seems not working..


form validation callbacks aren't being called - El Forum - 08-15-2010

[eluser]carnalito[/eluser]
same here..


form validation callbacks aren't being called - El Forum - 03-26-2011

[eluser]Wayne Smallman[/eluser]
Yeah, I'm using Modular Extensions and this technique isn't working for me, either.


form validation callbacks aren't being called - El Forum - 04-18-2012

[eluser]Sven Delle[/eluser]
Anyone found a solution to this yet? I can't get it working.


form validation callbacks aren't being called - El Forum - 10-17-2012

[eluser]Unknown[/eluser]
That worked fine for me. Thanks