06-11-2010, 08:31 AM
[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...
When I output 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.
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(); ?>
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.