Skip to content

Commit

Permalink
work on redirect docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 12, 2013
1 parent bc490b0 commit c3e1082
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions responses.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ A `Response` instance inherits from the `Symfony\Component\HttpFoundation\Respon

**Returning A Redirect To A Named Route With Parameters**

return Redirect::route('profile', array(1));

**Returning A Redirect To A Named Route Using Named Parameters**

return Redirect::route('profile', array('user' => 1));

**Returning A Redirect To A Controller Action**
Expand All @@ -53,6 +57,10 @@ A `Response` instance inherits from the `Symfony\Component\HttpFoundation\Respon

**Returning A Redirect To A Controller Action With Parameters**

return Redirect::action('UserController@profile', array(1));

**Returning A Redirect To A Controller Action Using Named Parameters**

return Redirect::action('UserController@profile', array('user' => 1));

<a name="views"></a>
Expand Down

0 comments on commit c3e1082

Please sign in to comment.