Commit 89ea17d9 by Taylor Otwell

fleshed out redirect::to_action

parent 5af190cc
...@@ -35,9 +35,17 @@ class Redirect extends Response { ...@@ -35,9 +35,17 @@ class Redirect extends Response {
return static::to($url, $status, true); return static::to($url, $status, true);
} }
public static function to_action($action, $parameters = array()) /**
* Create a redirect response to a controller action.
*
* @param string $action
* @param array $parameters
* @param int $status
* @return Redirect
*/
public static function to_action($action, $parameters = array(), $status = 302)
{ {
return static::to(URL::to_action($action, $parameters), $status);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment