Permalink
Browse files

update doc of Router::redirect

  • Loading branch information...
1 parent 619f661 commit a48149b4db42a37cc1e4d842f07c3ea5cee5e402 @zoghal zoghal committed Apr 29, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Routing/Router.php
View
2 lib/Cake/Routing/Router.php
@@ -348,7 +348,7 @@ public static function connect($route, $defaults = array(), $options = array())
*
* 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.

0 comments on commit a48149b

Please sign in to comment.