花了12个小时研究这个终于找到了
1-删除此文件夹web/bundles
。
2-执行此命令app/console assets:install web
你会看到这样的东西
Installing assets for Symfony\Bundle\FrameworkBundle into web/bundles/framework
Installing assets for CMS\AdminBundle into web/bundles/cmsadmin
Installing assets for CMS\SecurityBundle into web/bundles/cmssecurity
Installing assets for Coddict\NewsBundle into web/bundles/coddictnews
Installing assets for Coddict\ContactBundle into web/bundles/coddictcontact
Installing assets for Coddict\SliderBundle into web/bundles/coddictslider
Installing assets for Coddict\MediaBundle into web/bundles/coddictmedia
Installing assets for FOS\JsRoutingBundle into web/bundles/fosjsrouting
Installing assets for CMS\FrontBundle into web/bundles/cmsfront
Installing assets for Coddict\NewsletterBundle into web/bundles/coddictnewsletter
Installing assets for Symfony\Bundle\WebProfilerBundle into web/bundles/webprofiler
Installing assets for Sensio\Bundle\DistributionBundle into web/bundles/sensiodistribution
现在你完成了....创建了新的捆绑包
如果您遇到带有红色消息的时区错误,只需在 §AppKernel.php§ 中添加此代码即可:
public function init() {
date_default_timezone_set( 'Europe/Lisbon' );
parent::init();
}