• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
A Brief Introduction to Zend_Form
 

A Brief Introduction to Zend_Form

on

  • 2,502 views

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.

Statistics

Views

Total Views
2,502
Views on SlideShare
2,502
Embed Views
0

Actions

Likes
0
Downloads
19
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    A Brief Introduction to Zend_Form A Brief Introduction to Zend_Form Presentation Transcript

    • A Brief Introduction to Zend_Form
    • About Me Jeremy Kendall PHP Developer since 2001 Organizer Memphis PHP Contributor to FRAPI project (getfrapi.com) [email_address] @JeremyKendall http://jeremykendall.net
    • The Goal
      • Practical knowledge
        • Just enough to get you started
        • Just enough to be really dangerous
      • Better understanding of the Zend Framework's philosophy
    • Not the Goal
      • In-depth technical knowledge
      • Beautiful UI
      • Wealth beyond your wildest dreams
    • Forms
      • They're everywhere
      • They're indispensable
      • They might well be your primary job responsibility
    • Form Requirements
      • 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.
    • Example: PHP Form, Code Sample
    • Works, but . . .
      • Tons of markup
      • Code in the markup
      • Confusing conditionals
      • Client side validation only
      • Zero input filtering
      • Requires two scripts: form & processor
      • I could go on and on . . .
    • Could form handling be improved?
        What about . . .
      • Markup generation?
      • Built in validation and filtering?
      • OO for extensibility and ease of re-use?
      • Separation of concerns?
    • Zend_Form
      • Introduced in version 1.5.0PR, early 2008
      • Creates, validates, and renders forms
      • Object oriented
      • Easily extended
      • Completely customizable
      • Can be used apart from ZF MVC
      • Slices and dices
      • Available for the low, low price of $19.95
    • Zend_Form Examples
      • Some fields required
      • Default Zend_Form markup
      • Some default data included
      • First example stands alone
      • Second example in ZF MVC app
    • Example: Zend_Form, Standalone
    • Example: Zend_Form, MVC
    • Pros and Cons
        Since most of this presentation has been about the pros, the cons include:
      • OO overhead
      • Code and display are still combined
      • Steep-ish learning curve
    • 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
    • Questions?
    • Thanks! Jeremy Kendall [email_address] @JeremyKendall http://jeremykendall.net