简体   繁体   English

SONATA ADMIN BUNDLE创建一个主页

[英]SONATA ADMIN BUNDLE CREATE A BLOCK HOME PAGE

I have a little problem to realize my own block on the home page of the dashboard. 在仪表板主页上实现自己的代码块时,我遇到了一些问题。 I tried to follow this tutorial : https://sonata-project.org/bundles/block/master/doc/reference/your_first_block.html 我试图按照本教程进行操作: https : //sonata-project.org/bundles/block/master/doc/reference/your_first_block.html

But I have get the following error message: 但是我收到以下错误消息:

An exception has been thrown during the rendering of a template ("The block service sonata.block.service... does not exist") in ... 在...中渲染模板时抛出了异常(“块服务sonata.block.service...不存在”)。

Has someone else experienced this same issue, and/or knows how to fix this? 其他人是否也遇到过同样的问题,并且/或者知道如何解决?

I see you have sonata.block.service.allrequests in your config.yml and sonata.block.service.lastrequests in your services.yml . 我看你有没有sonata.block.service.allrequestsconfig.ymlsonata.block.service.lastrequestsservices.yml。 Shouldn't they be the same? 他们不应该一样吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM