A Brief Introduction to Zend_Form
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

A Brief Introduction to Zend_Form

  • 2,639 views
Uploaded on

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

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

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
2,639
On Slideshare
2,639
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
19
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. A Brief Introduction to Zend_Form
  • 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
    • Practical knowledge
      • Just enough to get you started
      • 4. Just enough to be really dangerous
    • Better understanding of the Zend Framework's philosophy
  • 5. Not the Goal
    • In-depth technical knowledge
    • 6. Beautiful UI
    • 7. Wealth beyond your wildest dreams
  • 8. Forms
    • They're everywhere
    • 9. They're indispensable
    • 10. They might well be your primary job responsibility
  • 11. Form Requirements
    • Collect data
    • 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 . . .
    • Tons of markup
    • 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?
      What about . . .
    • Markup generation?
    • 27. Built in validation and filtering?
    • 28. OO for extensibility and ease of re-use?
    • 29. Separation of concerns?
  • 30. Zend_Form
    • Introduced in version 1.5.0PR, early 2008
    • 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
    • Some fields required
    • 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
      Since most of this presentation has been about the pros, the cons include:
    • OO overhead
    • 46. Code and display are still combined
    • 47. Steep-ish learning curve
  • 48. Resources
    • Zend_Form Quickstart
      • http://bit.ly/ba8fr0
    • Rob Allen's talk, “Working with Zend_Form”
      • http://akrabat.com/talks/
    • Zend_Form_Element_Multi – Tips and Tricks
      • http://bit.ly/bEZl37
  • 49. Questions?
  • 50. Thanks! Jeremy Kendall [email_address] @JeremyKendall http://jeremykendall.net