我尝试安装adminlte捆绑但没有运气。我总是得到:
Unable to find file "@AvanzuAdminThemeBundle/Resources/public/vendor/modernizr/modernizr.js" in . (which is being imported from "app\cache\dev/assetic/routing.yml").
我做过的事情: 将此添加到composer.json
{
"require": {
"avanzu/admin-theme-bundle": "~1.3"
}
}
然后php composer.phar require avanzu/admin-theme-bundle
将new Avanzu\AdminThemeBundle\AvanzuAdminThemeBundle(),
添加到AppKernel
使用app/console assets:install --symlink
然后去了base.html.twig并添加了
{% extends 'AvanzuAdminThemeBundle:layout:base-layout.html.twig' %}
如果我启动服务器,我会收到这些错误。文件位于:
./vendor/avanzu/admin-theme-bundle/Resources/public/static/dev/scripts/modernizr.js
./vendor/avanzu/admin-theme-bundle/Resources/public/static/prod/scripts/modernizr.js
./web/bundles/avanzuadmintheme/static/dev/scripts/modernizr.js
./web/bundles/avanzuadmintheme/static/prod/scripts/modernizr.js
我的错是什么?谢谢!
答案 0 :(得分:0)
答案 1 :(得分:0)
运行以下命令以创建所有符号链接
php bin/console assets:install --symlink
OR
php app/console assets:install --symlink