Issues

ZF-11325: "HeadMeta Usage with XHTML1_RDFA doctype" example uses the wrong doctype constant

Issue Type: Docs: Problem Created: 2011-04-25T22:09:13.000+0000 Last Updated: 2012-06-02T01:56:38.000+0000 Status: Resolved Fix version(s): - 1.12.0 (27/Aug/12)

Reporter: jsnod (afx114) Assignee: Frank Brückner (frosch) Tags: - Zend_View

  • FixForZF1.12
  • View_Helper

Related issues: Attachments: - manual.patch

Description

Example #21 at http://framework.zend.com/manual/en/… uses the incorrect doctype constant. It should be XHTML1_RDFA rather than XHTML_RDFA. Using the example results in the following error:

<pre class="highlight">

Patch:

Eclipse Workspace Patch 1.0

P ZendFramework-trunk

Index: documentation/manual/ja/module_specs/Zend_View-Helpers-HeadMeta.xml

--- documentation/manual/ja/module_specs/Zend_View-Helpers-HeadMeta.xml (revision 23872) +++ documentation/manual/ja/module_specs/Zend_View-Helpers-HeadMeta.xml (working copy) @@ -230,7 +230,7 @@

     <programlisting language="php"><![CDATA[

-$this->doctype(Zend_View_Helper_Doctype::XHTML_RDFA); +$this->doctype(Zend_View_Helper_Doctype::XHTML1_RDFA); $this->headMeta()->setProperty('og:title', 'my article title'); $this->headMeta()->setProperty('og:type', 'article'); echo $this->headMeta();

Index: documentation/manual/en/module_specs/Zend_View-Helpers-HeadMeta.xml

--- documentation/manual/en/module_specs/Zend_View-Helpers-HeadMeta.xml (revision 23872) +++ documentation/manual/en/module_specs/Zend_View-Helpers-HeadMeta.xml (working copy) @@ -226,7 +226,7 @@

     <programlisting language="php"><![CDATA[

-$this->doctype(Zend_View_Helper_Doctype::XHTML_RDFA); +$this->doctype(Zend_View_Helper_Doctype::XHTML1_RDFA); $this->headMeta()->setProperty('og:title', 'my article title'); $this->headMeta()->setProperty('og:type', 'article'); echo $this->headMeta(); ```

Comments

Posted by Frank Brückner (frosch) on 2012-03-02T15:43:31.000+0000

Patch includes changes in "ja", "en" and "fr".

Posted by Adam Lundrigan (adamlundrigan) on 2012-06-02T01:56:38.000+0000

Fixed in trunk (1.12.0): r24868

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts