<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[
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.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
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.