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
2 Comments
comments.show.hideJul 25, 2007
Stanislav Malyshev
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.
Aug 29, 2007
Adrian Hope-Bailie
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.