Skip to end of metadata
Go to start of metadata

Zend Framework: Zend_View_Helper_* Additions Component Proposal

Proposed Component Name Zend_View_Helper_* Additions
Developer Notes http://framework.zend.com/wiki/display/ZFDEV/Zend_View_Helper_* Additions
Proposers Ralph Schindler
Revision 1.0 - 10 July 2007: Initial Proposal (wiki revision: 4)

Table of Contents

1. Overview

Zend_View_Helper_* (Doctype, HeadBase, HeadLink, HeadMeta, HeadScript, HeadStyle, HeadTitle) allow developers to injects view script dependencies into a master layout. See usage cases below.

2. References

3. Component Requirements, Constraints, and Acceptance Criteria

These components (while not nessissary) do work best when combined with a Two-Step approach to formalizing a layout.

4. Dependencies on Other Framework Components

  • Zend_View_Helper
  • Zend_Exception

5. Theory of Operation

6. Milestones / Tasks

7. Class Index

  • Zend_View_Helper_Doctype - for doctype printing and tracking, other helpers would check this to determine if xhtml is in use
  • Zend_View_Helper_HeadBase - for appending the base url to a page
  • Zend_View_Helper_HeadLink - for appending links to the head section, specifically stylesheets
  • Zend_View_Helper_HeadMeta - for appending meta-data to head sections
  • Zend_View_Helper_HeadScript - for appending js files and js snippets for inclusion in the head section
  • Zend_View_Helper_HeadStyle - for appending free floating style sections to head section
  • Zend_View_Helper_HeadTitle - allowing the setting of snipptes of a title from view scripts, for inclusion in overall layout

8. Use Cases

UC-01
UC-02

Sample Head section:

9. Class Skeletons

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Jul 25, 2007

    I'd propose to make 'application/rss+xml' and such constant - so one wouldn't have to remember what's RSS type is, or even better have functions like addRssFeed(), addAtomFeed() etc.

  2. Aug 29, 2007

    Many of these functions eem to have been covered by the Zend_View_Enhanced proposal by Padraic Brady which is already under review.

    I like the way he does it as it is all part of a far more comprehensive and better structured view system.