admin generator
play

Admin Generator It's RAD baby! Admin Generator It's RAD baby! - PowerPoint PPT Presentation

Admin Generator It's RAD baby! Admin Generator It's RAD baby! Rapid Application Development Who am I, and what do I do? Ian P. Christian (aka. pookey) Coding PHP for about 8 years Work for VoIP.co.uk Involved with symfony and


  1. Admin Generator It's RAD baby!

  2. Admin Generator It's RAD baby! Rapid Application Development

  3. Who am I, and what do I do?  Ian P. Christian (aka. pookey)  Coding PHP for about 8 years  Work for VoIP.co.uk  Involved with symfony and Doctrine  My website: http://pookey.co.uk

  4. About this presentation  Based on sf1.0  CRUD  Admin Generator  sfExtJsThemePlugin  Questions and maybe some answers

  5. Why Bother?! Doing it yourself is easy! The admin generator has a learning curve The admin generator is slow

  6. Reasons to use it  Well documented  Well Tested  Reduced time to market  Because it's cool!

  7. Welcome to the Farm  We have Farms  A Farm can contain many Barns  We have Animals  A Barn can contain Many Animals  Animals can by in many Barns

  8. Assumptions  You have sf1.0 or sf1.1 installed  You have a project configured  You have a 'backend' application  You have configured your database.yml  You're using Propel 1.2

  9. CRUD: Lets make a farm! module application model

  10. Show me the code!

  11. What about templates?

  12. That's useless! But... I can change my modelz? Sorry Spoon Cat, no! If you want that, you'll have to keep listening!

  13. A better CRUD module application model

  14. The generated CRUD Edit/Create/Delete List View

  15. The generated CRUD action WTF? Where's the code!!

  16. The real code cache/backend/prod/modules/autoFarm/actions/actions.class.php

  17. generator.yml

  18. Wow, how cool! Lolz, that's cool!! What else can symfony do to help me work less?

  19. init-admin module application model

  20. The generated module

  21. generator.yml  generator.yml is the heart of the admin generator  Lots of options, too many to cover here

  22. Validation (yes,the vim highlighting of YAML isn't perfect!)

  23. The error

  24. What does a cow look like?  Add 'picture' to the schema.yml  Regenerate the model  We only need to change the generator.yml and add validation

  25. Updated validation

  26. Updated generator.yml

  27. What it looks like

  28. Improving our list

  29. Improving our list apps/backend/modules/animal/config/generator.yml

  30. Improving our list apps/backend/modules/animal/templates/_picture.php

  31. The improved list

  32. Relationships

  33. Adding a Barn

  34. Adding a barn What is '1'?!

  35. Improved Barn

  36. Many-to-Many

  37. Many-to-many

  38. Improving our Animal Form apps/backend/modules/animal/config/generator.yml apps/backend/modules/animal/templates/_legs.php.html

  39. Improving our Animal Form apps/backend/modules/animal/actions/actions.class.php

  40. Improving our Animal Form

  41. Filtering

  42. Filtering

  43. Advanced Filtering apps/backend/modules/animal/config/generator.yml apps/backend/modules/animal/templates/_num_legs.php

  44. Advanced Filtering

  45. Adding Animals to the Barn List

  46. Specifying a Peer Method

  47. What else can it do?  Integration with credentials  I18N is possible  Rich text editor  Rich date editor

  48. sfExtJsThemePlugin  Contains: Generator + Theme  View ( js ) requests data ( json ) at the user  More interactive user interface  Designed to create web-applications  Capable of:  Lazy loads views (edit/list/filter-panels)  Packing and minifying automatically

  49. The Future!  New Form API – easier to extend  Propel & Doctrine support  Themable  I18N  Better upload  http://trac.symfony-project.org/ wiki/SprintSymfony12AdminGenerator

  50. Questions?  Thanks to...some people....

Recommend


More recommend