Zend_Route 代码问题
此代码正在运行。
resources.router.routes.babynameslist.route = "baby-names/baby-boy-names-list-from/:char
resources.router.routes.babynameslist.defaults.module = "default"
resources.router.routes.babynameslist.defaults.controller = "index"
resources.router.routes.babynameslist.defaults.action = "babynameslist"
http://example.com/baby-names/baby-boy-names-list-from/a/
但我想用这个。
resources.router.routes.babynameslist.route = "baby-names/baby-boy-names-list-from-:char/"
resources.router.routes.babynameslist.defaults.module = "default"
resources.router.routes.babynameslist.defaults.controller = "index"
resources.router.routes.babynameslist.defaults.action = "babynameslist"
它不起作用( -:char/ )
http://example.com/baby-names/baby-boy-names-list-from-a/
请帮助我如何制作“baby-boy-names-list-from-a”