[eluser]TerryT[/eluser]
Thanks for the help so far. The controller code works. However, I can't get the message to print in my view. Have this in my controller:
Code:
$data2['messages'] = $this->ion_auth->messages();
$this->load->vars($data2);
$this->load->view('users_view');
When I print_r($data2), I get the right messages. In my view I have tried:
Code:
<?php echo $messages; ?>
<?php echo $this->messages; ?>
<?php echo $data2; ?>
<?php echo $data2->messages; ?>
<?php echo $this->data2['messages']; ?>
Everything errors out with undefined variables or trying to do something with a non-object.