[eluser]Mysticsage[/eluser]
I have everything working so far except I seem to have a problem with one method where $this->load->view() does not work.
It's a simple function to check if the user has submitted a username and password and then set session variables to be used later on.
Here is the part that does not seem to want to work:
Code:
$username = $this->input->post('username');
$password = $this->input->post('password');
if (!$username) {
$this->load->view('error.php');
}
(note that I have tried !$username, $username == false and $username === false)
edit: I have also checked to see if the if statement is working by putting exit('asdf') in
the code for error.php is just a generic error page
Code:
<p>Sorry, there was an error with your request. Please try again later.</p>
Am I doing something wrong?
Any help would be appreciated,
Mystic