【发布时间】:2011-06-06 18:44:50
【问题描述】:
我正在根据these instructions 进行移动检测并将 sf_format 设置为“移动”。
但我无法为移动格式创建单独的路线。是否可以有两条具有相同 url 的路由?以下设置对我不起作用:
mobile_homepage:
url: /
param: { module: mobile, action: index, sf_format: html }
requirements:
sf_format: mobile
homepage:
url: /
param: { module: site, action: index }
mobile_homepage 路由总是匹配的,不管 sf_format。
【问题讨论】: