donglan9651 2017-06-13 13:07
浏览 18
已采纳

Symfony2在表单类型扩展中获取请求URL

Is it possible to fetch the request URL in form type extension? I want to find out what is calling the form type extension.

Thank you

Jake He

  • 写回答

1条回答 默认 最新

  • dpl22899 2017-06-13 16:03
    关注

    As you can define from type extension as a service, i think you can inject the request

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?