作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用这个 mopabootstrap bundle ,按照所有说明进行操作。我收到以下错误:
An exception has been thrown during the compilation of a template ("Unable to find file "@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-transition.js".") in "MopaBootstrapBundle::base.html.twig".
最佳答案
如果您使用的是最新版本的 MopaBootstrap,以及 Symfony 2.1 或 2.2,似乎 twitter/bootstrap
文件未正确安装和符号链接(symbolic link)。
也许你错过了composer.json
部分:
{
"scripts": {
"post-install-cmd": [
"Mopa\\Bundle\\BootstrapBundle\\Composer\\ScriptHandler::postInstallSymlinkTwitterBootstrap"
],
"post-update-cmd": [
"Mopa\\Bundle\\BootstrapBundle\\Composer\\ScriptHandler::postInstallSymlinkTwitterBootstrap"
]
}
}
/vendor/twitter/bootstrap
到 MopaBootstrap 文件夹:
/vendor/mopa/bootstrap-bundle/Mopa/BootstrapBundle/Resources/bootstrap
{
"require": {
"mopa/bootstrap-bundle": "dev-master",
"twitter/bootstrap": "dev-master"
}
}
关于symfony - mopabootstrap 包和 symfony2 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12257898/
我正在使用这个 mopabootstrap bundle ,按照所有说明进行操作。我收到以下错误: An exception has been thrown during the compilatio
我是一名优秀的程序员,十分优秀!