-- José de Menezes Soares Neto <[EMAIL PROTECTED]> wrote
(on Tuesday, 23 September 2008, 10:41 AM -0300):
> Hi,
>
> I get a Config.ini with a router:
>
> routes.tag.route = "tag/:word/:page"
> routes.tag.defaults.module = default
> routes.tag.defaults.controller = index
> routes.tag.defaults.action = tag
>
> And it is working like that:
>
> http://localhost/app/tag/word/123
>
> But I would like to have this working too:
>
> http://localhost/app/tag/word
>
> But it is not working, how to make it work?
You need a default value for the page variable:
route.tag.defaults.page = 1
--
Matthew Weier O'Phinney
Software Architect | [EMAIL PROTECTED]
Zend Framework | http://framework.zend.com/