thanks, i was looking for this example.
On 8/7/07, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > Please read up on how to create custom routes using the router: > > > http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes > > In the example you give, you'd add a route like this: > > $front = Zend_Controller_Front::getInstance(); > $router = $front->getRouter(); > $pagesRoute = new Zend_Controller_Router_Route( > '/pages/:action/:id', // URL to match; action and id will be matched > array( > 'module' => 'default', // 'default' module > 'controller' => 'pages', // 'pages' controller > 'action' => 'view', // by default, use view action > ), > array( > 'id' => '\d+', // require ID to be numeric > ), > ); > $router->addRoute('pages', $pagesRoute); > > -- > Matthew Weier O'Phinney > PHP Developer | [EMAIL PROTECTED] > Zend - The PHP Company | http://www.zend.com/
