1
我試圖使用管理生成器與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: ~
我得到的錯誤有機磷在配置發生了錯誤。如果你在prod嘗試緩存:熱身
但我不ind生產environnement和升溫緩存不起作用。
有人可以幫忙嗎?
ty
不管你的環境如何,試着清理緩存。然後 - 爲開發環境執行'app/console cache:warmup --env = dev' –
我離開管理髮生器的開發者太複雜了,沒有結果,我使用了sonata管理員,而且更簡單, –