Here is an example of a Route, taken from this page:
$route = new Zend_Controller_Router_Route_Regex(
'blog/archive/(\d+)-(.+)\.html',
array(
'controller' => 'blog',
'action' => 'view'
),
array(
1 => 'id',
2 => 'description'
),
'blog/archive/%d-%s.html'
);
$router->addRoute('blogArchive', $route);
I can see that it matches paths that follow the pattern 'blog/archive/(\d+)-(.+)\.html'
, redirecting to the blog
controller and view
action, and passing along the id
and description
parameter. But, what is the purpose of the fourth argument; 'blog/archive/%d-%s.html'
?