I am completely new to symfony2, I created a simple entity model using the orm doctrine in symfony, but I donβt know how to create and use admin-generator, I actually tried and installed all the necessary packages from this admin generator http: // symfony2admingenerator .org / . and even tried to configure it using
php app/console admin:setup
everything went fine, but I donβt know how to view the admin side regardless of whether it is generated or not.
my 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: ~
entity class located in
src\Go\UserBundle\Entity\User.php
src\Go\UserBundle\Entity\UserRepository.php
my admin package located in
Go\GoAdminBundle\Controller\Admin\DeleteController.php
Go\GoAdminBundle\Controller\Admin\EditController.php
Go\GoAdminBundle\Controller\Admin\ListController.php
Go\GoAdminBundle\Controller\Admin\NewController.php
source
share