Hi everyone english
I have a problem with the routing: in the members page to a league ("/league/ID_LEAGUE/members"), the link for the action "new" becomes "/league/members/news" (the league s id disappears). I would like to keep that ID and create a url like "/league/ID_LEAGUE/members/ new" so you can select in selectbox the current league...
我不想这样做:
members: class: sfDoctrineRouteCollection options: { model: Members, module: members, column: id_member, with_wildcard_routes: true } # List to league (id) s members memebers_league: url: /league/:id/members options: { model: Members, type: list } param: { module: members, action: index } # New member members_new: url: /league/:id_league/members/new class: sfDoctrineRoute options: { model: Members, type: object } param: { module: members, action: new }
有了这些路线,我就有了这一例外:“/league/:id_league/ members/new”路线,有一些缺失的强制性参数(即:id_league)”(在“成员”中,“getIdLeague()”)。
谁能帮助我?
预先感谢