Skip to end of metadata
Go to start of metadata

Zend Framework: Zend_Form_Element_Note Component Proposal

Proposed Component Name Zend_Form_Element_Note
Developer Notes http://framework.zend.com/wiki/display/ZFDEV/Zend_Form_Element_Note
Proposers Jan Pieper
Zend Liaison  
Revision 1.0 - 16 July 2008: Initial Draft. (wiki revision: 7)

Table of Contents

1. Overview

Zend_Form_Element_Note is a simple component that displays plain text in Zend_Form. Very usefull if you do not want users to edit a fields value.

There is still Zend_View_Helper_FormNote (see references), but in an XHTML document it causes a warning (used W3C HTML Validator) because the label belongs to no matching element.

2. References

3. Component Requirements, Constraints, and Acceptance Criteria

All requirements are shown as dependencies below.

4. Dependencies on Other Framework Components

  • Zend_Form
  • Zend_Form_Element_Xhtml
  • Zend_View_Helper_FormElement

5. Theory of Operation

The component displays plain text using html <span> element in a form build with Zend_Form.

6. Milestones / Tasks

  • Milestone 1: [DONE] Initial Draft
  • Milestone 2: [DONE] Use cases
  • Milestone 3: [DONE] Class skeletons
  • Milestone 4: Ready for Comments
  • Milestone 5: ...

7. Class Index

  • Zend_Form_Element_Note
  • Zend_View_Helper_FormNote

8. Use Cases

UC-01: User can change his account data, but not his login.

9. Class Skeletons

Labels:
zend_form zend_form Delete
form form Delete
html html Delete
span span Delete
zend_view zend_view Delete
zend_view_helper_formnote zend_view_helper_formnote Delete
zend_form_element_note zend_form_element_note Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Jun 12, 2009

    Ready for review?

  2. Jun 12, 2009

    We don't need this. Ugly HTML with no semantics.
    The solution: create a new element for Zend_Form:

    There is already a helper for Zend_View: „Zend_View_Helper_FormNote".

  3. Feb 05, 2011

    Archiving this proposal, feel free to recover it when you want to work on it again. For more details see this email.