title: In Kohana/PHP, how can send execution to a new controller/action?
body: <p>In PHP/Kohana, I have controller action method which does some processing. When it is finished, I want to send it to another controller, e.g.:</p>
  
  <pre><code>public function action_import_csv()
  {
      Kohana_Import_Driver_Csv::process_files_from_csv_to_mysql($this-&gt;import_directory);
      //url::redirect(Route::get('backend_application')-&gt;uri()); //undefined method URL::redirect()
      //redirect(Route::get('backend_application')-&gt;uri(), null); //undefined function
  }
  </code></pre>
  
  <p>According to <a href="http://docs.kohanaphp.com/helpers/url" rel="nofollow noreferrer">this documentation</a> at least the first redirect should work. I'm using <strong>Kohana 3</strong>.</p>
  
  <p><strong>How can I send execution from this controller action method to a new controller/action?</strong></p>
  
  <h1>Addendum</h1>
  
  <p>For some reason, url::redirect is not available, here is the code completion I get for <code>url::</code>:</p>
  
  <p><img src="https://i.stack.imgur.com/GDsq3.png" alt="alt text"></p>
  
  <p>@bharath, I tried <code>url::current()</code> and got this error:</p>
  
  <p><img src="https://i.stack.imgur.com/xsTJa.png" alt="alt text"></p>