I figured that portion of the problem out.

Still need to resolve the default router issue. <base url>/admin needs to
route through the default router.

Thanks,

Gunter


On 9/2/07, Leo Büttiker <[EMAIL PROTECTED]> wrote:
>
> Hi Gunter
> You have to write a asterix '*' for the parameters. Something like
> '/:action/:detailPage/*'.
> Cheers,
> Leo
>
> ________________________________________
> Von: Gunter Sammet [mailto:[EMAIL PROTECTED]
> Gesendet: Samstag, 1. September 2007 03:55
> An: fw-general@lists.zend.com
> Betreff: [fw-general] custom route problem
>
> Hi all:
> I have following custom route:
>
> $router = $frontController->getRouter();
> $browseRoute = new Zend_Controller_Router_Route(
> '/:action/:detailPage', // URL to match; action and id will
> be matched
> array(
> 'module' => 'default', // 'default' module
> 'controller' => 'browse',
> 'detailPage' => 'index'
> )
> );
> $router->addRoute('browse', $browseRoute);
>
>
> I want to use this custom route only for my browse controller matching
> (locations|expertise|advantage|info|lifestyle) actions. It works partially
> for e.g. <base url>/locations or <base url>/locations/browse_locations but
> it doesn't work for <base url>/locations/browse_locations/page/2 (should
> also work for <base
> url>/locations/browse_locations/page/2/key1/value1/.../.../keyX/valueX).
>
> All requests that have an existing controller (e.g. <base url>/admin or
> <base url>/admin/index or <base url>/admin/index or <base
> url>/admin/list/view/test etc.) should use the default route.
>
> Any suggestions on how to solve this problem?
> TIA
>
> Gunter
>
>

Reply via email to