【发布时间】:2013-07-23 10:32:57
【问题描述】:
我正在尝试使用带有 symfony 的管理生成器来生成网站的后台。
我遇到了麻烦。
这是我的 generator.yml(为了保密,会改一些名字)
generator: admingenerator.generator.doctrine
params:
model: Company\Bundle\projectBundle\Entity\Oeuvre
namespace_prefix: Company
bundle_name: Bundle\projectBundle
fields:
titre:
help: If you want to see this content on you website
builders:
list:
params:
title: List for Bundle\projectBundle
display: [ titre ]
actions:
new: ~
object_actions:
edit: ~
delete: ~
filters:
params:
display: [ titre ]
new:
params:
title: New object for Bundle\projectBundle
display: [ titre ]
actions:
save: ~
list: ~
edit:
params:
title: "You're editing the object \"%object%\"|{ %object%: YourModel.title }|"
display: ~
actions:
save: ~
list: ~
show:
params:
title: "You're viewing the object \"%object%\"|{ %object%: YourModel.title }|"
display: ~
actions:
list: ~
new: ~
actions:
params:
object_actions:
delete: ~
batch_actions:
delete: ~
我收到错误 Opps 您的配置中发生错误。如果你在 prod 中尝试缓存:warmup
但我不是 ind 生产环境,加热缓存不起作用。
有人可以帮忙吗?
ty
【问题讨论】:
-
无论您的环境如何,都尝试清除缓存。然后 - 为开发环境执行
app/console cache:warmup --env=dev -
我把开发留给 admin 生成器太复杂了,没有结果,我用奏鸣曲 admin 代替,要简单得多,