1
我在Symfony中使用我的routing.yml存在問題。 當我把一個默認值它返回我和空值。我不知道他爲什麼這麼做。 我不喜歡它的Symfony的doc,但問題仍然存在 http://symfony.com/doc/current/book/routing.html使用默認值的Symfony 2路由
lapille_plateform_homepage:
path: /{page}
defaults:
_controller: LAPILLEPlateformBundle:Advert:index
page: 1
requirements:
page: \d*
和我的錯誤就好像是 Symfony error
非常感謝你幫助一個空的變量。
亞歷山大
解決
變化要求
requirements:
page: \d*
通過
requirements:
page: \d+
THX所有
爲什麼相同的代碼格式稍有不同會產生差異? – Cerad
我嘗試過,但不工作... –
好它解決了......我改變我的要求 頁:\ d * 通過 頁:\ d + 坦克大家 –