Saturday, 15 September 2012

subroutine - Zend ini routing limitless subpages -



subroutine - Zend ini routing limitless subpages -

currently i'm working on scheme has build-in pages. pages work parent , kid pages means sub-paging works. now, i've been searching on web morning find out how should write routing create (unlimited) sub-page mechanism have :language/page/parent/child-1/child-2/child-3/:alias... , on. :alias in illustration corresponds db table field (has on end).

[routes] routes.language.type = "zend_controller_router_route" routes.language.route = ":lang" routes.language.defaults.lang = "en" routes.language.chains.frontend_page.type = "zend_controller_router_route" routes.language.chains.frontend_page.route = "page/:alias" routes.language.chains.frontend_page.defaults.module = "default" routes.language.chains.frontend_page.defaults.controller = "index" routes.language.chains.frontend_page.defaults.action = "index" routes.language.chains.frontend_page.defaults.alias = "index"

this how (simple) routing looks like. guess many others me searching solution problem. if there genius out there willing explain... please =d !

best regards

zend-framework subroutine

No comments:

Post a Comment