|
|
@@ -1,6 +1,6 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<!-- Reviewed: no -->
|
|
|
-<!-- EN-Revision: 21824 -->
|
|
|
+<!-- EN-Revision: 24438 -->
|
|
|
<sect3 id="zend.controller.actionhelpers.contextswitch">
|
|
|
<title>ContextSwitch および AjaxContext</title>
|
|
|
|
|
|
@@ -98,7 +98,7 @@ class NewsController extends Zend_Controller_Action
|
|
|
|
|
|
<itemizedlist>
|
|
|
<listitem><para>
|
|
|
- レスポンスヘッダ 'Content-Type' を '<filename>text/xml</filename>' にします。
|
|
|
+ レスポンスヘッダ 'Content-Type' を '<filename>application/xml</filename>' にします。
|
|
|
</para></listitem>
|
|
|
|
|
|
<listitem><para>
|
|
|
@@ -174,7 +174,7 @@ $this->_helper->contextSwitch()->setAutoJsonSerialization(false);
|
|
|
<listitem>
|
|
|
<para>
|
|
|
<emphasis><acronym>XML</acronym></emphasis>。<acronym>XML</acronym> コンテキストは、
|
|
|
- 'Content-Type' レスポンスヘッダを '<filename>text/xml</filename>' に設定し、
|
|
|
+ 'Content-Type' レスポンスヘッダを '<filename>application/xml</filename>' に設定し、
|
|
|
ビュースクリプトのサフィックスを '<filename>xml.phtml</filename>' とします。
|
|
|
このコンテキスト用に、新しいビュースクリプトを作成する必要があります。
|
|
|
</para>
|