Is there a simpler way to redirect using a route while adding paramters in Kohana?

Posted by Darryl Hein on Stack Overflow See other posts from Stack Overflow or by Darryl Hein
Published on 2011-01-15T01:44:10Z Indexed on 2011/01/15 1:53 UTC
Read the original article Hit count: 195

Filed under:
|
|

I find myself doing the following or similar quite often:

Request::instance()->redirect(Route::get('route')->uri(array('action' => 'action')));

Or:

Request::instance()->redirect(Route::get(Route::name(Request::instance()->route))->uri(array('action' => 'action')));

I'm wondering if there's any short, easier, simpler way of doing this. I love the Route functionality, but it makes for some long lines of PHP.

© Stack Overflow or respective owner

Related posts about php

Related posts about kohana