If you can't read please download the document
Upload
jeremy-kendall
View
2.033
Download
2
Embed Size (px)
DESCRIPTION
This is the talk I gave at the June 22, 2010 meeting of Memphis PHP.
Citation preview
2. About Me Jeremy Kendall PHP Developer since 2001 Organizer Memphis PHP Contributor to FRAPI project (getfrapi.com) [email_address] @JeremyKendall http://jeremykendall.net 3. The Goal
4. Just enough to be really dangerous Better understanding of the Zend Framework's philosophy 5. Not the Goal
6. Beautiful UI 7. Wealth beyond your wildest dreams 8. Forms
9. They're indispensable 10. They might well be your primary job responsibility 11. Form Requirements
12. Filter input 13. Validate input 14. Display validation messages 15. Include default data (ex. List of US States) 16. Pre-populated fields (for edit/update operations) 17. . . . and more. 18. Example: PHP Form, Code Sample 19. Works, but . . .
20. Code in the markup 21. Confusing conditionals 22. Client side validation only 23. Zero input filtering 24. Requires two scripts: form & processor 25. I could go on and on . . . 26. Could form handling be improved?
27. Built in validation and filtering? 28. OO for extensibility and ease of re-use? 29. Separation of concerns? 30. Zend_Form
31. Creates, validates, and renders forms 32. Object oriented 33. Easily extended 34. Completely customizable 35. Can be used apart from ZF MVC 36. Slices and dices 37. Available for the low, low price of $19.95 38. Zend_Form Examples
39. Default Zend_Form markup 40. Some default data included 41. First example stands alone 42. Second example in ZF MVC app 43. Example: Zend_Form, Standalone 44. Example: Zend_Form, MVC 45. Pros and Cons
46. Code and display are still combined 47. Steep-ish learning curve 48. Resources
Rob Allen's talk, Working with Zend_Form
Zend_Form_Element_Multi Tips and Tricks
49. Questions? 50. Thanks! Jeremy Kendall [email_address] @JeremyKendall http://jeremykendall.net