瀏覽代碼

[ZF-8465] Zend View Helpers manual page contains faulty code

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19389 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp 16 年之前
父節點
當前提交
b193a7eb8d

+ 1 - 1
documentation/manual/en/module_specs/Zend_View-Helpers-HeadStyle.xml

@@ -55,7 +55,7 @@
             <title>Headstyle With Conditional Comments</title>
             <programlisting language="php"><![CDATA[
 // adding scripts
-$this->headStyle()->appendStyle($styles, array('conditional' => 'lt IE 7');
+$this->headStyle()->appendStyle($styles, array('conditional' => 'lt IE 7'));
 ]]></programlisting>
         </example>
     </note>

+ 5 - 5
documentation/manual/en/module_specs/Zend_View-Helpers.xml

@@ -146,7 +146,7 @@ echo $this->formCheckbox('foo', 'bar');
 echo $this->formCheckbox('foo', 'bar', array('checked' => true));
 
 // 'bar' and 'baz' as checked/unchecked options; unchecked
-echo $this->formCheckbox('foo', null, null, array('bar', 'baz');
+echo $this->formCheckbox('foo', null, null, array('bar', 'baz'));
 
 // 'bar' and 'baz' as checked/unchecked options; unchecked
 echo $this->formCheckbox('foo', null, null, array(
@@ -155,18 +155,18 @@ echo $this->formCheckbox('foo', null, null, array(
 ));
 
 // 'bar' and 'baz' as checked/unchecked options; checked
-echo $this->formCheckbox('foo', 'bar', null, array('bar', 'baz');
+echo $this->formCheckbox('foo', 'bar', null, array('bar', 'baz'));
 echo $this->formCheckbox('foo',
                          null,
                          array('checked' => true),
-                         array('bar', 'baz');
+                         array('bar', 'baz'));
 
 // 'bar' and 'baz' as checked/unchecked options; unchecked
-echo $this->formCheckbox('foo', 'baz', null, array('bar', 'baz');
+echo $this->formCheckbox('foo', 'baz', null, array('bar', 'baz'));
 echo $this->formCheckbox('foo',
                          null,
                          array('checked' => false),
-                         array('bar', 'baz');
+                         array('bar', 'baz'));
 ]]></programlisting>
 
                 <para>