[英]symfony admin bundle installation
I am learning the symfony sonata bundle, I installed the symfony skeleton project with composer create-project symfony/website-skeleton sonata
command, and I enter into sonata directory and run composer require sonata-project/admin-bundle
command as the guide on symfonydoc , I checked all the configurations as the doc said, and the cache:clear
and assets:install
command all work fine, I started my server with php bin/console server:start
, but when I visit the url ' http://localhost:8000/admin/dashboard ' it reports error, An exception has been thrown during the rendering of a template ("Asset manifest file "/Users/kazuma/www/sonata/public/build/manifest.json" does not exist.").
我正在学习symfony奏鸣曲包,我使用
composer create-project symfony/website-skeleton sonata
命令安装了symfony骨架项目,然后进入sonata目录并运行composer require sonata-project/admin-bundle
命令作为symfonydoc的指南,我按照文档中的说明检查了所有配置,并且cache:clear
和assets:install
命令都可以正常工作,我使用php bin/console server:start
,但是当我访问url'http:// localhost时:8000 / admin / dashboard '它报告错误, An exception has been thrown during the rendering of a template ("Asset manifest file "/Users/kazuma/www/sonata/public/build/manifest.json" does not exist.").
I made my project with symfony before, but I don't know much about the webpack, my asset directory is empty, when I run npm install it works fine too, I don't know what I've missed. 我以前用symfony进行项目,但是我对webpack不太了解,我的资产目录为空,当我运行npm install时,它也可以正常工作,我也不知道我错过了什么。
in Symfony 4 在Symfony 4中
{ "bundles": { "Sonata\\\\AdminBundle\\\\SonataAdminBundle": ["all"] }, "copy-from-recipe": { "config/": "%CONFIG_DIR%/", "src/": "%SRC_DIR%/" } }
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.