Hi.

I want route to handle urls like this:

   - /adds
   - /adds/price/0/price/100000/year/1960/year/2010/city/0/sort_by/0/mode/0
   -
   
/adds/price/0/price/100000/kilometer/0/kilometer/200000/volume/0/volume/5000/year/1960/year/2010/power/0/power/500/brand/0/city/0/model/0/sort_by/0/driver_airbag/0/side_airbag/0/esp/0/central_lock/0/alarm/0/codriver_airbag/0/abs/0/asr/0/zeder/0/engine_block/0/aircondition/0/remote_lock/0/electric_windows/0/gps/0/xenon/0/turbo/0/aluminium_wheels/0/siber/0/electric_seats/0/webasto/0/cd_changer/0/tempomat/0/phone/0/seats_height/0/servo/0/leather/0/parking_sensors/0/fog_lights/0/hook/0/tuning/0/multifunctional_wheel/0/seat_heaters/0/electric_mirrors/0/hifi/0/dvd/0/dark_windows/0/computer/0/mirror_warmers/0/mode/1

I started with

resources.router.routes.adds.route = "adds"
resources.router.routes.adds.defaults.module = "default"
resources.router.routes.adds.defaults.controller = "adds"
resources.router.routes.adds.defaults.action = "index"

First one works of course, but other two are giving

Zend_Controller_Action_Exception: Action "price" does not exist and was not
trapped in __call()

thrown in Zend\Controller\Action.php on line 485


How can I make route for this? Maybe regex? Please help.

Regards,
Saša Stamenković

Reply via email to