title: Forcing CodeIgniter to send view and stop working
body: <p>Hello I'm using inherited controllers. These are my controllers:</p>
  
  <p>-baseAdminController:</p>
  
  <pre><code>&lt;?php
  if (!defined('BASEPATH'))
      exit('No direct script access allowed');
  class _BaseAdminController extends CI_Controller {
      public function __construct() {
          parent::__construct();
          $this-&gt;load-&gt;library('session');
  
          $calledFunction= $this-&gt;router-&gt;fetch_method();
          if ($calledFunction!= 'loginView' &amp;&amp; $calledFunction!= 'doLogin') {
              $this-&gt;checkSession();
          }
      }
  
      public function checkSession() {
  
          if ($this-&gt;session-&gt;userdata('loggedIn') == false) {
              $this-&gt;load-&gt;view('admin/loginView');
          }
      }
  }
  </code></pre>
  
  <p>And my derived Admin Controllers:
      
  
  <pre><code>if (!defined('BASEPATH'))
      exit('No direct script access allowed');
  
  class AdminController extends _BaseAdminController {
  
      public function indexView() {
          $this-&gt;load-&gt;view('admin/indexView');
      }
  }
  </code></pre>
  
  <p>When i'm tring to login, CodeIgniter shows me both admin/loginView and admin/indexView. Because i'm checking session status at constructing my derived controller. How can i prevent to loading second view?</p>
  
  <p>Thank in advance..</p>