3
我完全新的Symfony2,我創建了一個簡單的實體模型在symfony中使用ORM的學說,但我不知道如何生成和使用管理髮電機,其實我試過和從該管理生成器http://symfony2admingenerator.org/安裝了所有必需的捆綁包。甚至它使用如何從Symfony2的管理髮電機管理
php app/console admin:setup
一切都很好,但我不知道是否生成或不其如何查看管理方試圖設置。
我generator.yml
generator: admingenerator.generator.doctrine
params:
model: Go\UserBundle\Entity\User
namespace_prefix: Go
bundle_name: UserBundle
fields:
firstname:
help: If you want to see this content on you website
lastname:
help: If you want to see this content on you website
builders:
list:
params:
firstname: Here is a beautiful title no ???
display: [ id, firstname, firstname, email ]
max_per_page: 3
actions:
new: ~
object_actions:
edit: ~
delete: ~
filters:
params:
fields:
release_date:
formType: date_range
display: [ id, firstname, firstname, email ]
new:
params:
title: You're creating a new movie
display: [ firstname, firstname, email ]
actions:
list: ~
edit:
params:
title: You're editing the movie ""
display:
"NONE": [ email ]
"Other informations": [ ]
actions:
list: ~
delete: ~
位於位於
Go\GoAdminBundle\Controller\Admin\DeleteController.php
Go\GoAdminBundle\Controller\Admin\EditController.php
Go\GoAdminBundle\Controller\Admin\ListController.php
Go\GoAdminBundle\Controller\Admin\NewController.php
那麼現在它適合你嗎? –
如果您回答了您自己的問題,請創建答案並標記爲幫助他人的答案 –