我已经一周没有碰过我的项目了,今天当我想访问我的网站时出现此错误
“twig.form”下无法识别的选项“resources”
我不知道为什么..这之前工作得很好...
这是我的 config.yml :
twig:
debug: "%kernel.debug%"
strict_variables: "%kernel.debug%"
globals:
breadcrumb_trail: "@apy_breadcrumb_trail"
form:
resources:
- 'AppBundle:Form:fields.html.twig'
如果你有任何想法..:)
最佳答案
如果您使用的是 SF3 或更高版本,请检查 yaml 定义是否未更改以指定表单模板:当前的 (3.0.*) 应如下所示:
twig:
form_themes:
- 'bootstrap_3_layout.html.twig'
关于symfony - "resources"下无法识别的选项 "twig.form",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29050265/