Welcome Guest, Not a member yet? Register   Sign In
Strange issue with validation libraries
#7

[eluser]daweb[/eluser]
I don't think this is a problem.

I have the same trouble if I put rules inside my controller:

Code:
function index()
    {
        $data_stack['pageTitle']   = $this->lang->line('titleLogin');
        //$this->load->view('admin/custom_validation/logins_validation.php', '', FALSE);
        $rules['username'] = 'trim|required|min_length[5]|max_length[200]';
        $rules['password'] =   'trim|required|min_length[5]|max_length[200]|callback_check_login';
    $this->validation->set_rules($rules);

    $fields['username'] = $this->lang->line('formUsername');
    $fields['password'] = $this->lang->line('formPassword');
    $this->validation->set_fields($fields);        

if($this->validation->run() == TRUE)
        {
            redirect('front', 'location');
            exit();
        }

        $this->load->view('admin/login/index', $data_stack);
    }

It still doens't works: I have to put-in my settings model to make it work! I can't understand.


Messages In This Thread
Strange issue with validation libraries - by El Forum - 02-11-2008, 03:35 AM
Strange issue with validation libraries - by El Forum - 02-11-2008, 03:48 AM
Strange issue with validation libraries - by El Forum - 02-11-2008, 04:14 AM
Strange issue with validation libraries - by El Forum - 02-11-2008, 04:15 AM
Strange issue with validation libraries - by El Forum - 02-11-2008, 04:17 AM
Strange issue with validation libraries - by El Forum - 02-11-2008, 04:19 AM
Strange issue with validation libraries - by El Forum - 02-11-2008, 04:22 AM
Strange issue with validation libraries - by El Forum - 02-11-2008, 04:38 AM
Strange issue with validation libraries - by El Forum - 02-11-2008, 04:44 AM
Strange issue with validation libraries - by El Forum - 02-11-2008, 04:48 AM
Strange issue with validation libraries - by El Forum - 02-11-2008, 05:00 AM
Strange issue with validation libraries - by El Forum - 02-11-2008, 05:23 AM
Strange issue with validation libraries - by El Forum - 02-11-2008, 05:27 AM
Strange issue with validation libraries - by El Forum - 02-11-2008, 06:03 AM
Strange issue with validation libraries - by El Forum - 02-11-2008, 06:11 AM
Strange issue with validation libraries - by El Forum - 02-11-2008, 02:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB