Browse Source

[DOCUMENTATION] English:
- manual fixes

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@16601 44c647ce-9c0f-0410-b52a-842ac1e357ba

mikaelkael 16 years ago
parent
commit
40deb20663

+ 15 - 15
documentation/manual/en/module_specs/Zend_Controller-Plugins-PutHandler.xml

@@ -7,15 +7,15 @@
         <classname>Zend_Controller_Plugin_PutHandler</classname> provides a drop-in
         <classname>Zend_Controller_Plugin_PutHandler</classname> provides a drop-in
         plugin for marshalling PUT request bodies into request parameters, just
         plugin for marshalling PUT request bodies into request parameters, just
         like POST request bodies. It will inspect the request and, if PUT, will 
         like POST request bodies. It will inspect the request and, if PUT, will 
-        use parse_str to to parse the raw PUT body into an array of params 
+        use parse_str to parse the raw PUT body into an array of params 
         which is then set on the request. E.g.,
         which is then set on the request. E.g.,
     </para>
     </para>
 
 
-    <programlisting><![CDATA[
+    <programlisting language="txt"><![CDATA[
 PUT /notes/5.xml HTTP/1.1
 PUT /notes/5.xml HTTP/1.1
     
     
-title=Hello&body=World]]>
-    </programlisting>
+title=Hello&body=World
+]]></programlisting>
 
 
     <para>
     <para>
         To receive the 'title' and 'body' params as regular request params, 
         To receive the 'title' and 'body' params as regular request params, 
@@ -24,8 +24,8 @@ title=Hello&body=World]]>
     
     
     <programlisting language="php"><![CDATA[
     <programlisting language="php"><![CDATA[
 $front = Zend_Controller_Front::getInstance();
 $front = Zend_Controller_Front::getInstance();
-$front->registerPlugin(new Zend_Controller_Plugin_PutHandler());]]>
-    </programlisting>
+$front->registerPlugin(new Zend_Controller_Plugin_PutHandler());
+]]></programlisting>
             
             
     <para>
     <para>
         Then you can access the PUT body params by name from the request inside
         Then you can access the PUT body params by name from the request inside
@@ -33,13 +33,13 @@ $front->registerPlugin(new Zend_Controller_Plugin_PutHandler());]]>
     </para>
     </para>
     
     
     <programlisting language="php"><![CDATA[
     <programlisting language="php"><![CDATA[
-    ...
-    public function putAction()
-    {
-        $title = $this->getRequest()->getParam('title'); // $title = "Hello"
-        $body = $this->getRequest()->getParam('body'); // $body = "World"
-    }
-    ...]]>
-    </programlisting>
+...
+public function putAction()
+{
+    $title = $this->getRequest()->getParam('title'); // $title = "Hello"
+    $body = $this->getRequest()->getParam('body'); // $body = "World"
+}
+...
+]]></programlisting>
 
 
-</sect3>
+</sect3>