Symfony - Form requested url not found

前端 未结 1 1204
旧时难觅i
旧时难觅i 2021-01-24 23:47

Im working on a symfony project. Im battleling with a form that won\'t redirect to its own page. The action attribute is set to \"\" and method set to post. In that case it shou

相关标签:
1条回答
  • You need to explicitly allow POST for the route. Change your route to:

    stories_detail:
      url:   /stories-of-the-month/:slug
      class:   sfDoctrineRoute
      param: { module: stories, action: detail}
      options: { model: Article, type: object, method: doSelectForSlug }
      requirements: 
        sf_method: [get, post]
    
    0 讨论(0)
提交回复
热议问题