Welcome Guest, Not a member yet? Register   Sign In
Validation callback bug?
#4

PHP Code:
<?php
defined
('BASEPATH') OR exit('No direct script access allowed');

/**
 * Class MY_Form_validation
 *
 * Save to ./application/librayies/MY_Form_validation
 *
 */
class MY_Form_validation extends CI_Form_validation
{
    public function 
run($module ''$group '')
    {
        (
is_object($module)) AND $this->CI = &$module;
        return 
parent::run($group);
    }

}


// In your Controller

$this->load->library('form_validation');


if (
$this->form_validation->run($this) == FALSE)
{

}
else
{



That is how it is done.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
Validation callback bug? - by Douglas Fernando - 09-08-2016, 04:01 PM
RE: Validation callback bug? - by Joel Catantan - 09-08-2016, 08:08 PM
RE: Validation callback bug? - by Avenirer - 09-08-2016, 10:51 PM
RE: Validation callback bug? - by InsiteFX - 09-09-2016, 05:10 AM
RE: Validation callback bug? - by InsiteFX - 09-10-2016, 12:15 PM
RE: Validation callback bug? - by InsiteFX - 09-11-2016, 03:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB