Empty validation_errors()

#1
[eluser]cloudboy82[/eluser]
Hi all, I need some help here. I'm using codeigniter 1.7.2, and using the form validation class (and form helper both auto-loaded). I've used this class before with absolutely no problems, but for some reason there's no longer a validation message...

Code:
$config = array(
            array(
                'field'   => 'username',
                'label'   => 'Username',
                'rules'   => 'required'
            ),
            array(
                'field'   => 'password',
                'label'   => 'Password',
                'rules'   => 'required'
            ),
            array(
                'field'   => 'confirm_password',
                'label'   => 'Password Confirmation',
                'rules'   => 'required'
            ),  
            array(
                'field'   => 'email',
                'label'   => 'Email',
                'rules'   => 'required'
            )
        );
            
    
        if ($this->form_validation->run($config) == TRUE)
        {
            $this->load->view('registration/register-success', $view);        
        }
        else
        {
            $this->load->view('registration/register-index', $view);        
        }

When I output
Code:
<?php echo form_validation(); ?>
on my view, it's empty. When I do a vardump on it, it's string(0) "".

The form validation still runs, however (it checks everything, and if everything validates, it shows my success page), it just doesn't output any errors anymore.

Any help sorting this out would be much appreciated.


Messages In This Thread
Empty validation_errors() - by El Forum - 06-11-2010, 08:31 AM
Empty validation_errors() - by El Forum - 06-11-2010, 08:42 AM
Empty validation_errors() - by El Forum - 06-11-2010, 08:49 AM
Empty validation_errors() - by El Forum - 06-11-2010, 09:09 AM
Empty validation_errors() - by El Forum - 06-11-2010, 09:36 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.