4
젠드 프레임 워크를위한 INI 파일로 경로를 아래와 같이 정의하려고합니다 : http://api.example.com/servicename/ {버전}/users/: 사용자 ID/항목/: itemidZend 프레임 워크의 ini 파일에 경로 체인 체인을 작성하려면 어떻게해야합니까?
routes.host.type = "Zend_Controller_Router_Route_Hostname"
routes.host.route = "api.example.com"
routes.host.chains.api.type = "Zend_Controller_Router_Route_Static"
routes.host.chains.api.route = "servicename/v1"
routes.host.chains.api.defaults.controller = "servicename-v1-api"
routes.host.chains.api.defaults.action = "index"
routes.host.chains.api.chains.users.chains.user.type = "Zend_Controller_Router_Static"
routes.host.chains.api.chains.users.route = "users"
routes.host.chains.api.chains.users.defaults.controller = "users"
routes.host.chains.api.chains.users.defaults.action = "index"
routes.host.chains.api.chains.users.chains.user.type = "Zend_Controller_Router_Route"
routes.host.chains.api.chains.users.chains.user.route = ":id"
routes.host.chains.api.chains.users.chains.user.defaults.controller = "user"
routes.host.chains.api.chains.users.chains.user.defaults.action = "index"
...
host-api 라우트는 잘 작동하지만 내가 다른 경로에 도달하려고하면 오류가 발생합니다 '요청에 일치하는 경로 없음'
chains.something.chains.somethingelse 어색해 보이므로 올바른 방법이 아닙니다. 누군가?
안녕하세요, 체인 정의 오류가 발생했습니다. –