Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 FuelPHP 设置使用 Twig 作为解析器。但是包含 Twig 语句 {% include 'viewFileNameInsideSameDirectory.twig' %} 不起作用。我收到以下错误:
价值的意外令牌“名称”
提前致谢!
我想到了。我使用的是 Twig 文档中所示的单引号,但它仅适用于双引号。
{% 包括 "viewFolder/viewFileName.twig" %}