update doc of Router::redirect

This commit is contained in:
Saleh Souzanchi 2013-04-29 06:06:22 +04:30
parent 619f66178b
commit a48149b4db

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.