【发布时间】:2018-12-24 21:48:27
【问题描述】:
我正在尝试在我的 Symfony4 项目上运行一个免费的前端模板,我将 index.html(模板的)更改为 index.html.php,以便 Symfony 的 PHP 引擎可以支持它。但它仍然显示没有任何样式或 img 的普通文本。我不确定这是路径问题还是渲染问题。 在我的 index.html.php 中,我想引用与我的 index.html.php 位于同一级别的资产目录(其中包含 img、css 等),这里是完整路径主题文件和目录:
myproject/src/Resources/views/test/freeTemplateName/template/index.html.php
myproject/src/Resources/views/test/freeTemplateName/template/assets/.......
【问题讨论】:
标签: php css symfony twig symfony4