php admin bundle 的使用 错误报告

0,不管编程还是调试都会陷进去,回头想想才会了解当时的可笑,并记忆深刻。 于是有了这篇博问。

1,按官方的文档逐步搭建。直到建立services(已经建立就是个POSTentity),但是引入进来(引入有两种方式,用了第二种,不管XML还是YML),就是报错。

1.1 报错为acme.admin.post :has a dependency on a non-existent service ,然后在serveice.xml 定义后。这个服务就好了 但是:

1.2今天加了sonata.admin.comment ,这个service 居然没有

2,you can access the Admin class instance via the $admin variable. (看官网DOC 第二遍,希望弄清楚一些概念和细节问题)

$admin 是啥。

2.1 like getting services from the Dependency Injection Container (于是乎没什么特别)

posted on 2015-04-26 21:08  仰泳鱼  阅读(130)  评论(0编辑  收藏  举报

导航