views:

43

answers:

0

I've got my routes configured as below:

routes.rooms.type = "Zend_Controller_Router_Route_Static"
routes.rooms.route = "/rooms"
routes.rooms.defaults.module = "rooms"
routes.rooms.defaults.controller = "index"
routes.rooms.defaults.action = "index"

routes.rooms.chains.room.type = "Zend_Controller_Router_Route_Regex"
routes.rooms.chains.room.route = "/(\d+)"
routes.rooms.chains.room.defaults.action = "room"
routes.rooms.chains.room.map.1 = "room_id"
routes.rooms.chains.room.reverse = "/%d"

;admin
routes.rooms.chains.admin.type = "Zend_Controller_Router_Route_Static"
routes.rooms.chains.admin.route = "/admin"
routes.rooms.chains.admin.defaults.controller = "admin"
routes.rooms.chains.admin.defaults.action = "index"

routes.rooms.chains.admin.chains.deletedrooms.type = "Zend_Controller_Router_Route_Regex"
routes.rooms.chains.admin.chains.deletedrooms.route = "/deletedRooms(?:/(\d+))?"
routes.rooms.chains.admin.chains.deletedrooms.defaults.action = "deletedrooms"
routes.rooms.chains.admin.chains.deletedrooms.map.1 = "page_id"
routes.rooms.chains.admin.chains.deletedrooms.defaults.1 = 1
routes.rooms.chains.admin.chains.deletedrooms.reverse = "/deletedRooms/%d"

All seems fine with the routes but when trying to construct a navigation menu using a route (current trying to use rooms-admin) the page shows nothing (blank white page, no error). If I remove the routes, then an error message stating the routes haven't been defined; makes sense.

If I comment out rooms-admin, a later route 'rooms-admin-deletedrooms' works fine.. so it seems rooms-admin is the problem.

I've seen this: http://stackoverflow.com/questions/1052614/how-do-i-write-routing-chains-for-a-subdomain-in-zend-framework-in-a-routing-ini but I don't want to use the hostname part, I want my routes to be relative to the default routing system (making changes would take too long). Any ideas what could cause this error, are the routes defined correctly?

On a side note, what is quicker to parse: ini or xml? I'm guessing a php array is the quickest method out of all the options.