|
|
@@ -40,15 +40,15 @@ $form->setAction('/resource/process')
|
|
|
|
|
|
<para>
|
|
|
The above code sets the form action to the partial <acronym>URL</acronym>
|
|
|
- "/resource/process" and the form method to <acronym>HTTP</acronym> POST. This will be
|
|
|
- reflected during final rendering.
|
|
|
+ "<filename>/resource/process</filename>" and the form method to <acronym>HTTP</acronym>
|
|
|
+ <acronym>POST</acronym>. This will be reflected during final rendering.
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
You can set additional HTML attributes for the
|
|
|
- <code><form></code> tag by using the setAttrib() or
|
|
|
- setAttribs() methods. For instance, if you wish to set the id, set
|
|
|
- the "id" attribute:
|
|
|
+ <emphasis><form></emphasis> tag by using the <methodname>setAttrib()</methodname>
|
|
|
+ or <methodname>setAttribs()</methodname> methods. For instance, if you wish to set the
|
|
|
+ id, set the "<property>id</property>" attribute:
|
|
|
</para>
|
|
|
|
|
|
<programlisting language="php"><![CDATA[
|
|
|
@@ -240,7 +240,7 @@ echo $form;
|
|
|
<para>
|
|
|
By default, <classname>Zend_Form</classname> and
|
|
|
<classname>Zend_Form_Element</classname> will attempt to use the view object
|
|
|
- initialized in the <code>ViewRenderer</code>, which means you won't
|
|
|
+ initialized in the <classname>ViewRenderer</classname>, which means you won't
|
|
|
need to set the view manually when using the Zend Framework <acronym>MVC</acronym>.
|
|
|
To render a form in a view, you simply have to do the following:
|
|
|
</para>
|
|
|
@@ -300,9 +300,9 @@ $element->addDecorators(array(
|
|
|
|
|
|
<para>
|
|
|
The form itself simply loops through the elements, and dresses them
|
|
|
- in an HTML <code><form></code>. The action and method you
|
|
|
- provided when setting up the form are provided to the
|
|
|
- <code><form></code> tag, as are any attributes you set via
|
|
|
+ in an <acronym>HTML</acronym> <emphasis><form></emphasis>. The action and method
|
|
|
+ you provided when setting up the form are provided to the
|
|
|
+ <emphasis><form></emphasis> tag, as are any attributes you set via
|
|
|
<methodname>setAttribs()</methodname> and family.
|
|
|
</para>
|
|
|
|