|
|
@@ -1,6 +1,6 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<!-- Reviewed: no -->
|
|
|
-<!-- EN-Revision: 17600 -->
|
|
|
+<!-- EN-Revision: 17749 -->
|
|
|
<sect1 id="zend.controller.router" xmlns:xi="http://www.w3.org/2001/XInclude">
|
|
|
<title>標準のルータ</title>
|
|
|
<sect2 id="zend.controller.router.introduction">
|
|
|
@@ -60,7 +60,7 @@ RewriteRule ^[\w/\%]*(?:\.(?!(?:js|ico|gif|jpg|png|css|html)$)[\w\%]*$)? /index.
|
|
|
が存在しないか空の文字列に設定されます。このような場合、
|
|
|
<classname>Zend_Controller_Request_Http</classname> は
|
|
|
<varname>$_SERVER['HTTP_X_REWRITE_URL']</varname> の値を使用します。これは
|
|
|
- Isapi_Rewrite 拡張モジュールが設定します。
|
|
|
+ <classname>Isapi_Rewrite</classname> 拡張モジュールが設定します。
|
|
|
</para>
|
|
|
</note>
|
|
|
|
|
|
@@ -153,12 +153,24 @@ $router->addRoute('user',
|
|
|
</para>
|
|
|
|
|
|
<itemizedlist mark="opencircle">
|
|
|
- <listitem><para><xref linkend="zend.controller.router.routes.standard" /></para></listitem>
|
|
|
- <listitem><para><xref linkend="zend.controller.router.routes.static" /></para></listitem>
|
|
|
- <listitem><para><xref linkend="zend.controller.router.routes.regex" /></para></listitem>
|
|
|
- <listitem><para><xref linkend="zend.controller.router.routes.hostname" /></para></listitem>
|
|
|
- <listitem><para><xref linkend="zend.controller.router.routes.chain" /></para></listitem>
|
|
|
- <listitem><para><xref linkend="zend.controller.router.default-routes" /> *</para></listitem>
|
|
|
+ <listitem>
|
|
|
+ <para><link linkend="zend.controller.router.routes.standard" /></para>
|
|
|
+ </listitem>
|
|
|
+ <listitem>
|
|
|
+ <para><link linkend="zend.controller.router.routes.static" /></para>
|
|
|
+ </listitem>
|
|
|
+ <listitem>
|
|
|
+ <para><link linkend="zend.controller.router.routes.regex" /></para>
|
|
|
+ </listitem>
|
|
|
+ <listitem>
|
|
|
+ <para><link linkend="zend.controller.router.routes.hostname" /></para>
|
|
|
+ </listitem>
|
|
|
+ <listitem>
|
|
|
+ <para><link linkend="zend.controller.router.routes.chain" /></para>
|
|
|
+ </listitem>
|
|
|
+ <listitem>
|
|
|
+ <para><link linkend="zend.controller.router.default-routes" /> *</para>
|
|
|
+ </listitem>
|
|
|
</itemizedlist>
|
|
|
|
|
|
<para>
|
|
|
@@ -239,7 +251,8 @@ $router->addRoute('user',
|
|
|
<para>
|
|
|
これらの特殊変数の名前を変更することもできます。その場合は
|
|
|
<classname>Zend_Controller_Request_Http</classname> の
|
|
|
- <code>setControllerKey</code> メソッドや <code>setActionKey</code> メソッドを使用します。
|
|
|
+ <methodname>setControllerKey()</methodname> メソッドや
|
|
|
+ <methodname>setActionKey()</methodname> メソッドを使用します。
|
|
|
</para>
|
|
|
</note>
|
|
|
|
|
|
@@ -343,7 +356,7 @@ $router->removeDefaultRoutes();
|
|
|
ベース <acronym>URL</acronym> の検出に失敗する場合は、
|
|
|
<classname>Zend_Controller_Request_Http</classname> のメソッド <methodname>setBaseUrl()</methodname>
|
|
|
を使用してベースパスを上書き指定することができます
|
|
|
- (<xref linkend="zend.controller.request.http.baseurl" /> を参照ください)。
|
|
|
+ (<link linkend="zend.controller.request.http.baseurl" /> を参照ください)。
|
|
|
</para>
|
|
|
|
|
|
<programlisting language="php"><![CDATA[
|
|
|
@@ -357,7 +370,7 @@ $request->setBaseUrl('/~user/application-root/');
|
|
|
|
|
|
<para>
|
|
|
グローバルパラメータをルータ内で設定することができます。
|
|
|
- これは <code>setGlobalParam</code>
|
|
|
+ これは <methodname>setGlobalParam()</methodname>
|
|
|
によってルートに自動的に適用されます。
|
|
|
グローバルパラメータが設定されているにもかかわらず
|
|
|
直接メソッドによっても設定された場合は、
|