增加新闻中心的路由规则
This commit is contained in:
parent
57aba3bc30
commit
384c3750f3
|
@ -160,13 +160,13 @@ routes.adminoffline.defaults.action = offline
|
||||||
routes.adminoffline.defaults.page = 1
|
routes.adminoffline.defaults.page = 1
|
||||||
routes.adminoffline.reqs.page = \d+
|
routes.adminoffline.reqs.page = \d+
|
||||||
|
|
||||||
routes.news.type = "Zend_Controller_Router_Route_Static"
|
routes.news.route = news/:type/:page
|
||||||
routes.news.route = "news"
|
routes.news.defaults.controller = news
|
||||||
routes.news.defaults.controller = "news"
|
routes.news.defaults.action = list
|
||||||
routes.news.defaults.action = "list"
|
routes.news.defaults.page = 1
|
||||||
|
|
||||||
routes.archive.type = "Zend_Controller_Router_Route_Regex"
|
routes.archive.type = "Zend_Controller_Router_Route_Regex"
|
||||||
routes.archive.route = "archive/(\d+)"
|
routes.archive.route = "news/:type/archive-(\d+).html"
|
||||||
routes.archive.defaults.controller = "archive"
|
routes.archive.defaults.controller = news
|
||||||
routes.archive.defaults.action = "show"
|
routes.archive.defaults.action = archive
|
||||||
routes.archive.map.1 = "year"
|
routes.archive.map.1 = "aid"
|
||||||
|
|
Loading…
Reference in New Issue