2
모바일 검색을 수행하고 these instructions에 따라 sf_format을 'mobile'로 설정하고 있습니다.sf_format을 사용하는 심포니 1.4 라우팅
하지만 모바일 형식에 대한 별도의 경로를 만드는 데 문제가 있습니다. 동일한 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의 일치합니다. 당신이
param: { module: mobile, action: index, sf_format: html }
을 쓸 때
를 그냥 있다고. sf_format이 'html'로 설정된 경우에도 mobile_homepage 경로와 여전히 일치합니다. – gruner