Zend Framework: Zend_View_Helper_XmlDeclaration Component Proposal
| Proposed Component Name | Zend_View_Helper_XmlDeclaration |
|---|---|
| Developer Notes | http://framework.zend.com/wiki/display/ZFDEV/Zend_View_Helper_XmlDeclaration |
| Proposers | Geoffrey Tran |
| Zend Liaison | TBD |
| Revision | 1.0 - 1 January 2008: Initial Draft. (wiki revision: 3) |
Table of Contents
1. Overview
The xml declaration helper generates xml declarations (<?xml version="1.0" ?>) just like its name suggests. Whenever you are using PHP for templates, you should use the xmlDeclaration helper because of inconsistencies between environments. You'll never know if short tags is enabled or not which can cause errors with xml declarations.
2. References
3. Component Requirements, Constraints, and Acceptance Criteria
- This component will output an xml declaration
- This component will allow specification of version, encoding and standalone attributes
4. Dependencies on Other Framework Components
5. Theory of Operation
Simply echo's an xml declaration
6. Milestones / Tasks
- Milestone 1: [DONE] Create proposal
- Milestone 2: [DONE] Working prototype, Documentation, Unit Tests
- Milestone 3: Working prototype checked into the incubator
- Milestone 4: Unit tests exist, work, and are checked into SVN.
- Milestone 5: Initial documentation exists.
7. Class Index
- Zend_View_Helper_XmlDeclaration
8. Use Cases
| UC-01 |
|---|
Since it is not always known whether shorttags is enabled or not.
9. Class Skeletons
Labels:
None
3 Comments
comments.show.hideFeb 19, 2009
Robin Skoglund
Requesting community feedback.
May 03, 2009
Marc Bennewitz (GIATA mbH)
Why you need the $encoding param ? The encoding is already known by the view !
Jul 14, 2009
Matthew Weier O'Phinney
This proposal is accepted for immediate development in the Standard Incubator, with the following criteria: