2013-07-23 68 views
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

+0

不管你的環境如何,試着清理緩存。然後 - 爲開發環境執行'app/console cache:warmup --env = dev' –

+0

我離開管理髮生器的開發者太複雜了,沒有結果,我使用了sonata管理員,而且更簡單, –

回答

0

問題不在您的配置文件中。問題是你的捆綁深度。 AdminGenerator的當前版本不適用於「前綴」包。將您的軟件包從:Company\Bundle\projectBundle\移至Company\projectBundle\方案。 我知道AdminGenerator文檔頁面說您的捆綁方案是正確的,但仍然不起作用。只需更改捆綁深度。