且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

symfony:关于路由和 url_for() 的问题

更新时间:2022-01-18 21:20:18

对于路由,您必须在路由前添加@":url_for('@category_set_representative_image', array('sf_subject' => $类别))

for routes you will have to add "@" before the route: url_for('@category_set_representative_image', array('sf_subject' => $category))

你有routing.yml结尾的默认路由吗?

do you have you the default route at the end of the routing.yml?