1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-24 15:52:15 +01:00

Yaf_Dispatcher enhancement

This commit is contained in:
Sergey Panteleev
2021-07-13 16:08:05 +03:00
parent c0fb8cac83
commit 49d4fb5557
9 changed files with 15 additions and 15 deletions

View File

@@ -37,7 +37,7 @@
<note>
<para>
since 2.2.0, if this parameter is not given, then the current state
will be renturned
will be returned
</para>
</note>
</para>
@@ -56,7 +56,7 @@
<refsect1 role="examples">
&reftitle.examples;
<example>
<title><function>Yaf_Dispatcher::autoRender</function>example</title>
<title><function>Yaf_Dispatcher::autoRender</function> example</title>
<programlisting role="php">
<![CDATA[
<?php

View File

@@ -16,7 +16,7 @@
<para>
While the application.dispatcher.throwException is On(you can also calling
to <methodname>Yaf_Dispatcher::throwException(TRUE)</methodname> to enable it), Yaf will throw Exception when
error occurrs instead of trigger error.
error occurs instead of trigger error.
</para>
<para>
then if you enable <methodname>Yaf_Dispatcher::catchException</methodname>(also can enabled by set
@@ -49,7 +49,7 @@
<refsect1 role="examples">
&reftitle.examples;
<example>
<title><function>Yaf_Dispatcher::catchException</function>example</title>
<title><function>Yaf_Dispatcher::catchException</function> example</title>
<programlisting role="php">
<![CDATA[
/* if you defined a ErrorController like following */

View File

@@ -25,7 +25,7 @@
<member>Response</member>
</simplelist>
Routing takes place exactly once, using the values in the request object
when dispatch() is called. Dispatching takes place in a loop; a request may
when <function>Yaf_Dispatcher::dispatch</function> is called. Dispatching takes place in a loop; a request may
either indicate multiple actions to dispatch, or the controller or a plugin
may reset the request object to force additional actions to dispatch(see
<classname>Yaf_Plugin_Abstract</classname>. When all is done, the

View File

@@ -32,7 +32,7 @@
<note>
<para>
since 2.2.0, if this parameter is not given, then the current state
will be renturned
will be returned
</para>
</note>
</para>

View File

@@ -4,7 +4,7 @@
<refentry xml:id="yaf-dispatcher.getapplication" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>Yaf_Dispatcher::getApplication</refname>
<refpurpose>Retrive the application</refpurpose>
<refpurpose>Retrieve the application</refpurpose>
</refnamediv>
<refsect1 role="description">
@@ -14,7 +14,7 @@
<void />
</methodsynopsis>
<para>
Retrive the <classname>Yaf_Application</classname> instance. same as
Retrieve the <classname>Yaf_Application</classname> instance. same as
<methodname>Yaf_Application::app</methodname>.
</para>

View File

@@ -47,7 +47,7 @@
<refsect1 role="examples">
&reftitle.examples;
<example>
<title><function>Yaf_Dispatcher::registerPlugin</function>example</title>
<title><function>Yaf_Dispatcher::registerPlugin</function> example</title>
<programlisting role="php">
<![CDATA[
<?php

View File

@@ -17,7 +17,7 @@
<para>
Set error handler for Yaf. when <link
linkend="configuration.yaf.dispatcher.throwexception">application.dispatcher.throwException</link>
is off, Yaf will trigger catchable error while unexpected errors occrred.
is off, Yaf will trigger catchable error while unexpected errors occurred.
</para>
<para>
Thus, this error handler will be called while the error raise.

View File

@@ -27,7 +27,7 @@
<term><parameter>view</parameter></term>
<listitem>
<para>
A Yaf_View_Interface instance
A <classname>Yaf_View_Interface</classname> instance
</para>
</listitem>
</varlistentry>
@@ -44,7 +44,7 @@
<refsect1 role="examples">
&reftitle.examples;
<example>
<title><function>A custom View engine</function>example</title>
<title><function>A custom View engine</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
@@ -182,7 +182,7 @@ class Smarty_Adapter implements Yaf_View_Interface
</programlisting>
</example>
<example>
<title><function>Yaf_Dispatcher::setView</function>example</title>
<title><function>Yaf_Dispatcher::setView</function> example</title>
<programlisting role="php">
<![CDATA[
<?php

View File

@@ -14,7 +14,7 @@
<methodparam choice="opt"><type>bool</type><parameter>flag</parameter></methodparam>
</methodsynopsis>
<para>
Siwtch on/off exception throwing while unexpected error occurring.
Switch on/off exception throwing while unexpected error occurring.
When this is on, Yaf will throwing exceptions instead of triggering
catchable errors.
</para>
@@ -49,7 +49,7 @@
<refsect1 role="examples">
&reftitle.examples;
<example>
<title><function>Yaf_Dispatcher::throwexception</function>example</title>
<title><function>Yaf_Dispatcher::throwexception</function> example</title>
<programlisting role="php">
<![CDATA[
<?php