Your SlideShare is downloading. ×
0
A Brief Introduction to Zend_Form
About Me Jeremy Kendall PHP Developer since 2001 Organizer Memphis PHP Contributor to FRAPI project (getfrapi.com) [email_...
The Goal <ul><li>Practical knowledge </li><ul><li>Just enough to get you started
Just enough to be really dangerous </li></ul><li>Better understanding of the Zend Framework's philosophy </li></ul>
Not the Goal <ul><li>In-depth technical knowledge
Beautiful UI
Wealth beyond your wildest dreams </li></ul>
Forms <ul><li>They're everywhere
They're indispensable
They might well be your primary job responsibility </li></ul>
Form Requirements <ul><li>Collect data
Filter input
Validate input
Display validation messages
Include default data (ex. List of US States)
Pre-populated fields (for edit/update operations)
. . . and more. </li></ul>
Upcoming SlideShare
Loading in...5
×

A Brief Introduction to Zend_Form

2,063

Published on

This is the talk I gave at the June 22, 2010 meeting of Memphis PHP.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,063
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
20
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "A Brief Introduction to Zend_Form"

  1. 1. A Brief Introduction to Zend_Form
  2. 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. 3. The Goal <ul><li>Practical knowledge </li><ul><li>Just enough to get you started
  4. 4. Just enough to be really dangerous </li></ul><li>Better understanding of the Zend Framework's philosophy </li></ul>
  5. 5. Not the Goal <ul><li>In-depth technical knowledge
  6. 6. Beautiful UI
  7. 7. Wealth beyond your wildest dreams </li></ul>
  8. 8. Forms <ul><li>They're everywhere
  9. 9. They're indispensable
  10. 10. They might well be your primary job responsibility </li></ul>
  11. 11. Form Requirements <ul><li>Collect data
  12. 12. Filter input
  13. 13. Validate input
  14. 14. Display validation messages
  15. 15. Include default data (ex. List of US States)
  16. 16. Pre-populated fields (for edit/update operations)
  17. 17. . . . and more. </li></ul>
  18. 18. Example: PHP Form, Code Sample
  19. 19. Works, but . . . <ul><li>Tons of markup
  20. 20. Code in the markup
  21. 21. Confusing conditionals
  22. 22. Client side validation only
  23. 23. Zero input filtering
  24. 24. Requires two scripts: form & processor
  25. 25. I could go on and on . . . </li></ul>
  26. 26. Could form handling be improved? <ul>What about . . . <li>Markup generation?
  27. 27. Built in validation and filtering?
  28. 28. OO for extensibility and ease of re-use?
  29. 29. Separation of concerns? </li></ul>
  30. 30. Zend_Form <ul><li>Introduced in version 1.5.0PR, early 2008
  31. 31. Creates, validates, and renders forms
  32. 32. Object oriented
  33. 33. Easily extended
  34. 34. Completely customizable
  35. 35. Can be used apart from ZF MVC
  36. 36. Slices and dices
  37. 37. Available for the low, low price of $19.95 </li></ul>
  38. 38. Zend_Form Examples <ul><li>Some fields required
  39. 39. Default Zend_Form markup
  40. 40. Some default data included
  41. 41. First example stands alone
  42. 42. Second example in ZF MVC app </li></ul>
  43. 43. Example: Zend_Form, Standalone
  44. 44. Example: Zend_Form, MVC
  45. 45. Pros and Cons <ul>Since most of this presentation has been about the pros, the cons include: <li>OO overhead
  46. 46. Code and display are still combined
  47. 47. Steep-ish learning curve </li></ul>
  48. 48. Resources <ul><li>Zend_Form Quickstart </li><ul><li>http://bit.ly/ba8fr0 </li></ul><li>Rob Allen's talk, “Working with Zend_Form” </li><ul><li>http://akrabat.com/talks/ </li></ul><li>Zend_Form_Element_Multi – Tips and Tricks </li><ul><li>http://bit.ly/bEZl37 </li></ul></ul>
  49. 49. Questions?
  50. 50. Thanks! Jeremy Kendall [email_address] @JeremyKendall http://jeremykendall.net
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×