title: How to stop execution of a Request in Kohana?
body: <p>Let's say I have a controller template with a before function like so...</p>
  
  <pre><code>public function before()
    {
       parent::before();
       if ($this-&gt;request === Request::instance()) 
       {
           // its a main request, throw an exception or redirect
           Request::instance()-&gt;redirect('/');
       }
       else
       {
          // ok
       }
    }
  </code></pre>
  
  <p>But let's say I don't want to redirect, I want to stop the Request flow, and do nothing.</p>
  
  <p>Does an exception do this? Is there a simple way, like <code>Request::die();</code>?</p>
  
  <p>EDIT:: I actually don't want to halt the Request flow, just prevent this controller from doing anything.  It's likely that this controller was called from another controller, and I want to pass the control back to the calling controller.'</p>
  
  <p>Thanks!</p>