2
我正在做移動檢測和設置sf_format'移動'根據these instructions。symfony 1.4路由與sf_format
但我無法爲移動格式創建單獨的路由。是否有可能有兩個具有相同網址的路線?以下設置不適用於我:
mobile_homepage:
url:/
param: { module: mobile, action: index, sf_format: html }
requirements:
sf_format: mobile
homepage:
url:/
param: { module: site, action: index }
無論sf_format如何,mobile_hpage頁面路由始終匹配。
這只是它。即使sf_format設置爲'html',它仍然會匹配mobile_homepage路線。 – gruner 2011-01-10 21:30:52