title: Codeigniter , hook not loading Input class correctly
body: <p>i'm having trouble with a simple hook in CI version 1.7.3.</p>
  
  <p>i setted up a [pre_controller] hook in config hook.php file  and the hook code is:</p>
  
  <p>
  
  <pre><code>class Cookie {
  
  function remember_me(){
  
   $CI =&amp; get_instance();
   if($CI-&gt;input-&gt;cookie('remember_me_id',true)){
     $CI-&gt;load-&gt;model('user');
     $user =  $CI-&gt;user-&gt;populateById($id = $CI-&gt;input-&gt;cookie('remember_me_id',true));
     if($user){
     if($CI-&gt;input-&gt;cookie('remember_me_token',true) == md5($user-&gt;email.$user-&gt;password)){
     $CI-&gt;bootstrap-&gt;setUserSession($user);
     }
    }
   }
  }
  
  }
  
  //end class
  </code></pre>
  
  <p>the hook is loaded and executed but it doesn't load the input library cause it return error:
  Call to a member function cookie() on a non-object </p>
  
  <p>how can it be possible? could be possible that Input library is loaded after hooks is executed? :O
   ... cause in controllers,views and models input library works with no errors :/</p>