Symfony2 安装 ChillDevProxyTemplatedBundle - 无法导入资源

问题描述 投票:0回答:2

我刚刚安装了 symfony2 的 ChillDevProxyTemplated Bundle,如下所述:

https://github.com/chilloutdevelopment/ChillDevProxyTemplatedBundle/blob/master/Resources/doc/installation.md

我的模板已由捆绑包正确重命名(从“默认”到“php”),但是当我尝试调用我的控制器时,出现以下错误:

无法导入资源“。”来自 (...)app/cache/dev/assetic/routing.yml”。(以下加载程序未注册:默认)。

如何修复?

symfony import resources bundle
2个回答
0
投票

如此处解释:https://github.com/chilloutdevelopment/ChillDevFileManagerBundle/issues/27

您可能只需要安装 ChillDevViewHelpersBundle 即可使其正常工作。


0
投票

感谢社区的支持,我能够调查这个问题:

https://github.com/chilloutdevelopment/ChillDevProxyTemplatedBundle/issues/2

问题是,Assetic 在开发环境中尝试根据模板引擎名称解析所有模板,因此每个模板引擎都需要加载程序 - 当然,对于“默认”,没有加载程序,因此导致了异常。

© www.soinside.com 2019 - 2024. All rights reserved.