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.
我在现有的 symfony 项目上工作,我想在管理员(后端应用程序)中更改自动生成的视图。我发现我可以在/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/data/generator/sfDoctrineModule/admin/template/templates/...
/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/data/generator/sfDoctrineModule/admin/template/templates/...
我认为编辑这些文件不是一个好主意。如何更改这些模板?
您可以在模块级别覆盖模板。访问有问题的页面后,查看缓存目录并检查那里的自动生成代码,例如:
cache/ backend/ modules/ /autoMyModule/ templates/
然后,您可以找出需要更改的文件,然后在其中创建该文件apps/backend/myModule/templates并覆盖您需要的文件。
apps/backend/myModule/templates
我正在尝试将 Schema.org 标记添加到我的 HTML 中。具体来说,我想根据这些示例标记一些事件。尽管这些示例很有帮助,但它们也有些不完整,例如,没有演示表演者/表演者属性的使用。
在我的特定情况下,每个事件都表示为表格行。在添加 Schema.org 属性之前,标记如下所示:
<t