Skip to end of metadata
Go to start of metadata

<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[

Zend Framework: Zend_View_Helper_XmlDeclaration Component Proposal

Proposed Component Name Zend_View_Helper_XmlDeclaration
Developer Notes
Proposers Geoffrey Tran (Google+)
Zend Liaison TBD
Revision 1.0 - 1 January 2008: Initial Draft. (wiki revision: 5)

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


Since it is not always known whether shorttags is enabled or not.

9. Class Skeletons



Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Feb 19, 2009

    <p>Requesting community feedback.</p>

  2. May 03, 2009

    <p>Why you need the $encoding param ? The encoding is already known by the view !</p>

  3. Jul 14, 2009

    <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>
    <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>