[英]Ineffective bundle template override
I've a problem to override the template of one of my bunddle.我有一个问题要覆盖我的一个捆绑包的模板。 I've read the doc and try like this link : https://symfony.com/doc/current/bundles/override.html我已阅读文档并尝试使用此链接: https : //symfony.com/doc/current/bundles/override.html
Here what the state of my project : https://pasteboard.co/IarWJoZ4.png I've add the path than I think is right : templates/bundles/AiemosShopBundle/views/Catalog but it doesn't work.这是我的项目状态: https ://pasteboard.co/IarWJoZ4.png 我添加的路径比我认为的正确:templates/bundles/AiemosShopBundle/views/Catalog 但它不起作用。
This is what template is calling in symfony debugger :这是模板在 symfony 调试器中调用的内容:
vendor/aimeos/aimeos-symfony/Resources/views/Catalog/list.html.twig
I've made multiple ineffective tests with paths like : aiemos/aiemos-symfony我已经使用以下路径进行了多次无效测试:aiemos/aiemos-symfony
Could you help me to solve my problem or show me the right way to do this please?你能帮我解决我的问题或告诉我正确的方法吗? Thank you very much.非常感谢。
templates/bundles/AiemosShopBundle/views/Catalog but it doesn't work.模板/捆绑包/AiemosShopBundle/views/Catalog 但它不起作用。
The correct folder is :正确的文件夹是:
templates/bundles/AimeosShopBundle/Catalog
No views subfolder.没有视图子文件夹。 Note that it is AimeosShopBundle instead of AiemosShopBundle注意是AimeosShopBundle而不是AiemosShopBundle
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.