Welcome Guest, Not a member yet? Register   Sign In
What is the best way to echo out error messages from the Controller to the View
#4

[eluser]Namsu[/eluser]
In my controller I have:

else {

$data = array( 'errors' => 1 );
$this->load->view('yascms/login', $data);

}

and in my view I have the line:

<?php if (isset($errors) && $errors == 1) { echo "Credentials invalid, your IP Address is logged"; }; ?>

I have a blank page. Not sure what is wrong with this code. If you can help me out that would be great.


Messages In This Thread
What is the best way to echo out error messages from the Controller to the View - by El Forum - 07-28-2010, 06:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB