title: Codeigniter giving blank page after form submit
body: <p>I'm working on a login system for codeigniter and after the login form is submitted, the page just comes up blank. I have the following code, with echo's inserted to help me find out where things go wrong.</p>
  
  <p>I have development mode set in the index.php mode and E_ALL in php.ini and receive errors on some other pages successfully.</p>
  
  <p>Controller for /account/login:</p>
  
  <pre><code>public function login()
  {
      echo "made it back into controller";
      $this-&gt;load-&gt;helper('form');
      $this-&gt;load-&gt;library('form_validation');
  
      $data['title'] = "Log in";
  
      $this-&gt;form_validation-&gt;set_rules('username', 'Username', 'trim|required|xss_clean');
      $this-&gt;form_validation-&gt;set_rules('password', 'Password', 'trim|required|xss_clean');
  
      if ( $this-&gt;form_validation-&gt;run() === FALSE )
      {
          echo "unable to validate";
          $this-&gt;load-&gt;view('templates/header', $data);
          $this-&gt;load-&gt;view('account/login', $data);
          $this-&gt;load-&gt;view('templates/footer', $data );
      } 
      else
      {
          echo "attempting to login";
          if ( $this-&gt;account_model-&gt;login() == FALSE ) 
          {
              echo "failed";
              $this-&gt;load-&gt;view('templates/header', $data);
              $this-&gt;load-&gt;view('account/login', $data);
              $this-&gt;load-&gt;view('templates/footer', $data );
          }
          else
          {
              echo "success";
              $this-&gt;load-&gt;view('templates/header', $data);
              $this-&gt;load-&gt;view('account/successfullogin', $data);
              $this-&gt;load-&gt;view('templates/footer', $data );
          }
      }
  
  }
  </code></pre>
  
  <p>login() method from Model, called by controller:</p>
  
  <pre><code>public function login ()
  {
  
      require 'application/libraries/PasswordHash.php';
  
      $t_hasher = new PasswordHash(8, FALSE);
      $password = $this-&gt;input-&gt;post('password');
      $hash = $t_hasher-&gt;HashPassword($password);
      echo "hashed";
  
      $query = $this-&gt;db-&gt;query('SELECT `login_token` FROM `Users` WHERE `username` = "'.$this-&gt;input-&gt;post('username').'" AND `password` = "'. $this-&gt;input-&gt;post('password').'"');
  
      echo "query made";
      $rowCount = $query-&gt;num_rows();
      echo "query counted";
  
      if ( $rowCount == 1 ) {
          echo "found row";
          $token = $query-&gt;result_array();
          echo "found token";
          $this-&gt;input-&gt;set_cookie( 'session_token', $token['login_token'], time()+259200, '/', 'notyetcreated.phpfogapp.com');
          echo "cookie created";
          return TRUE;
      } else {
          echo "no beans";
          return FALSE;
      }
  }
  </code></pre>
  
  <p>With the debug messages I've setup, after submitting the form, I get "made it back into controller attempting to login" and that's it. Any ideas as to what could be causing it?</p>