Merge pull request #1253 from zoghal/master

update doc of Router::redirect
This commit is contained in:
Mark Story 2013-04-28 20:25:25 -07:00
commit cbce171fef

View file

@ -348,7 +348,7 @@ class Router {
*
* Examples:
*
* `Router::redirect('/home/*', array('controller' => 'posts', 'action' => 'view', array('persist' => true)));`
* `Router::redirect('/home/*', array('controller' => 'posts', 'action' => 'view'), array('persist' => true));`
*
* Redirects /home/* to /posts/view and passes the parameters to /posts/view. Using an array as the
* redirect destination allows you to use other routes to define where a url string should be redirected to.