update docs, add return false will prevent auto-rendering

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327530 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Xinchen Hui 2012-09-08 04:01:47 +00:00
parent 30f488ae24
commit 25581d7bf4
2 changed files with 15 additions and 8 deletions

View file

@ -17,10 +17,13 @@
<classname>Yaf_Dispatcher</classname> will render automatically after
dispatches a incoming request, you can prevent the rendering by calling
this method with <parameter>flag</parameter> TRUE
<note>
<para>
you can simply return FALSE in a action to prevent the auto-rendering of
that action
</para>
</note>
</para>
</refsect1>
<refsect1 role="parameters">
@ -60,6 +63,7 @@ class IndexController extends Yaf_Controller_Abstract {
Yaf_Dispatcher::getInstance()->autoRender(FALSE);
}
}
}
?>
]]>

View file

@ -10,15 +10,18 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type>Yaf_Dispatcher</type><methodname>Yaf_Dispatcher::disableView</methodname>
<modifier>public</modifier> <type>bool</type><methodname>Yaf_Dispatcher::disableView</methodname>
<void />
</methodsynopsis>
<para>
disable view engine, used in some app that user will output by theirself
<note>
<para>
you can simply return FALSE in a action to prevent the auto-rendering of
that action
</para>
</note>
</para>
</refsect1>
<refsect1 role="parameters">