<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[
<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 (Google+)
Zend Liaison
TBD
Revision
1.0 - 1 January 2008: Initial Draft. (wiki revision: 5)
Table of Contents
1. Overview
2. References
3. Component Requirements, Constraints, and Acceptance Criteria
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.
3 Comments
comments.show.hideFeb 19, 2009
Robin Skoglund
<p>Requesting community feedback.</p>
May 03, 2009
Marc Bennewitz (GIATA mbH)
<p>Why you need the $encoding param ? The encoding is already known by the view !</p>
Jul 14, 2009
Matthew Weier O'Phinney
<ac:macro ac:name="note"><ac:parameter ac:name="title">Zend Framework Approval</ac:parameter><ac:rich-text-body>
<p>This proposal is accepted for immediate development in the Standard Incubator, with the following criteria:</p>
<ul>
<li>Please have the helper accept a single argument, an array allowing one or more of the keys "version", "encoding", and "standalone". This will allow flexibility for users to select only those keys they wish to set.</li>
<li>The "encoding" key should default to the encoding set in the view object</li>
</ul>
</ac:rich-text-body></ac:macro>