title: How do I use the params/get the controller for a hook in CodeIgniter?
body: <p>I have a post-controller hook:</p>
  
  <pre><code>$hook['post_controller'][] = array(
      'class'    =&gt; 'PostControllerHook',
      'function' =&gt; 'post_controller',
      'filename' =&gt; 'PostControllerHook.php',
      'filepath' =&gt; 'hooks',
      'params'   =&gt; array('controller')
  );
  </code></pre>
  
  <p>The <a href="http://ellislab.com/codeigniter/user-guide/general/hooks.html" rel="nofollow">hooks documentation</a> says that I can specify paramaters for my hook. How do I specify these parameters? Also, I need to have access to my controller object, which is why I'm trying to pass it as a parameter.</p>