Welcome Guest, Not a member yet? Register   Sign In
Loading the form and validating in the same function?
#12

[eluser]Ivan A. Zenteno[/eluser]
But why your controller is like that? I mean the controllers is like then:

Code:
function foo()
{
    $rules = array('THE RULES HER');
    $this->form_validation->set_rules($rules);
    if($this->form_valitaion->run())
    {
       //foo true
    }
    else
    {
       //var false
    }
}


Messages In This Thread
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 08:40 AM
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 08:45 AM
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 08:57 AM
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 09:05 AM
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 09:09 AM
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 09:10 AM
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 09:45 AM
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 10:18 AM
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 10:42 AM
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 11:40 AM
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 11:58 AM
Loading the form and validating in the same function? - by El Forum - 04-29-2010, 04:26 PM
Loading the form and validating in the same function? - by El Forum - 04-30-2010, 12:50 AM
Loading the form and validating in the same function? - by El Forum - 04-30-2010, 03:32 PM
Loading the form and validating in the same function? - by El Forum - 04-30-2010, 10:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB