2010年4月15日星期四

RE: [fw-mvc] Problems with Routes

Hi,

This is normal behaviour, because you supply defaults for all variables.
Even if you would call "Suche", the router would route you to __call.

Regards,

Jachim Coudenys
Web Developer - Guideline Belgium

-----Oorspronkelijk bericht-----
Van: Marcel Alburg [mailto:alb@weeaar.com]
Verzonden: donderdag 15 april 2010 0:49
Aan: fw-mvc@lists.zend.com
Onderwerp: [fw-mvc] Problems with Routes

Hello,

i define the route

resources.router.routes.suche.route = Suche/:searchparam/:page
resources.router.routes.suche.defaults.controller = Suche
resources.router.routes.suche.defaults.action = __call
resources.router.routes.suche.defaults.page = 1
resources.router.routes.suche.defaults.searchparam =

everyhing works good with

Suche/
Suche/xyz
Suche/xyz/1

But if i call "Suche/?q=123" Zend Routes me to __call - this is not correct, because after "?" are GET Params.

How can i resolve that ?

Thanks
Marcel
--
This email was Anti Virus scanned.

没有评论: