title: Is it possible to load a Singleton in CodeIgniter hooks?
body: <p>I have an issue with Code Igniter hooks.
  I am triggering the two following hooks. The first one is a Singleton. The second one is a regular class.</p>
  
  <pre><code>$hook['post_controller_constructor'] = array(
      'class'    =&gt; 'LoggedInUser',
      'function' =&gt; 'getInstance',
      'filename' =&gt; 'LoggedInUser.php',
      'filepath' =&gt; 'hooks',
      'params'   =&gt; ""
  );
  
  $hook['post_controller_constructor'] = array(
      'class'    =&gt; 'SecureController',
      'function' =&gt; 'verifyCredentials',
      'filename' =&gt; 'SecureController.php',
      'filepath' =&gt; 'hooks',
      'params'   =&gt; ""
  );
  </code></pre>
  
  <p>When I try to access a LoggedInUser::methodName() inside the SecureController class, I get an error.</p>
  
  <blockquote>
    <p>Message: Class 'LoggedInUser' not found</p>
  </blockquote>