Easy backends with Symfony2 and the Sonata Admin bundle
-
Upload
phpassionate -
Category
Technology
-
view
20.102 -
download
5
description
Transcript of Easy backends with Symfony2 and the Sonata Admin bundle
Easy backends with Symfony2 and the
SonataAdminBundle
Lineke Kerckhoffs-Willems @the_linie / [email protected]
http://joind.in/7062
About me
! Over 9 years experience with PHP
! Egeniq
! Love conferences
! Head of PHPWomen EU
! Lead developer ProTalk
! Mentor and writer
! Mum of 2 beautiful daughters
! @the_linie / [email protected]
The problem
Solutions
! DIY (Do It Yourself)
! Admingenerator bundle
! SONATA ADMIN BUNDLE
The bundle
Setup
! Installation
! Separate bundle
Setup - Configuration
Admin class
Dashboard
Features
List view
Create / edit view
Fields - Relations - 1
Fields - Relations - 2
Validation In the admin class
A bit more advanced
Tooltips In the admin class
Adding filtering to list view
In the admin class
Default ordering in list view
In the admin class
Batch actions - 1
The user interface
Batch actions - 2
In the admin class
Batch actions - 3
Create a controller
Translations - simple
! Change default locale in parameters.ini
! Add messages.<language>.xliff in Resources/translations
Translations - strategies
! Different strategies ! sonata.admin.label.strategy.native : DEFAULT
! sonata.admin.label.strategy.form_component
! sonata.admin.label.strategy.underscore
! sonata.admin.label.strategy.noop
! In config.yml
Translations - domains
! In the admin class
! Rename messages.<language>.xliff
There is more…
! Customize templates
! ACL and Google authenticator
! CLI
Conclusion
! Sonata Admin Bundle is a great bundle
! Lack of / unclear documentation
! Complexity of the bundle
! Separate bundle needs controller directory
Questions?
Resources
! http://sonata-project.org/
! http://phpassionate.com/2012/05/22/how-to-use-the-symfony2-sonataadminbundle/
Thank you! http://joind.in/7062
@the_linie / [email protected]