Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Easy backends with Symfony2 and the Sonata Admin bundle

28,936 views

Published on

Slides for the talk given at Symfony Live London on the 14th of September 2012

Published in: Technology, Education

Easy backends with Symfony2 and the Sonata Admin bundle

  1. 1. Easy backends with Symfony2 and theSonataAdminBundle Lineke Kerckhoffs-Willems @the_linie / lineke@phpassionate.com http://joind.in/7062
  2. 2. 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 / lineke@phpassionate.com
  3. 3. The problem
  4. 4. Solutions!   DIY (Do It Yourself)! Admingenerator bundle!   SONATA ADMIN BUNDLE
  5. 5. The bundle
  6. 6. Setup!   Installation!   Separate bundle
  7. 7. Setup - Configuration
  8. 8. Admin class
  9. 9. Dashboard
  10. 10. Features
  11. 11. List view
  12. 12. Create / edit view
  13. 13. Fields - Relations - 1
  14. 14. Fields - Relations - 2
  15. 15. ValidationIn the admin class
  16. 16. A bit more advanced
  17. 17. TooltipsIn the admin class
  18. 18. Adding filtering to list viewIn the admin class
  19. 19. Default ordering in list viewIn the admin class
  20. 20. Batch actions - 1The user interface
  21. 21. Batch actions - 2In the admin class
  22. 22. Batch actions - 3Create a controller
  23. 23. Translations - simple!   Change default locale in parameters.ini! Add messages.<language>.xliff in Resources/translations
  24. 24. 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
  25. 25. Translations - domains!   In the admin class! Rename messages.<language>.xliff
  26. 26. There is more…! Customize templates!   ACL and Google authenticator!   CLI
  27. 27. Conclusion! Sonata Admin Bundle is a great bundle! Lack of / unclear documentation! Complexity of the bundle!   Separate bundle needs controller directory
  28. 28. Questions?
  29. 29. Resources!   http://sonata-project.org/!   http://phpassionate.com/2012/05/22/how-to-use-the- symfony2-sonataadminbundle/
  30. 30. Thank you! http://joind.in/7062@the_linie / lineke@phpassionate.com

×