From 25581d7bf40699e9afaa03ec92af9273c76d9f6a Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Sat, 8 Sep 2012 04:01:47 +0000 Subject: [PATCH] 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 --- reference/yaf/yaf_dispatcher/autorender.xml | 10 +++++++--- reference/yaf/yaf_dispatcher/disableview.xml | 13 ++++++++----- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/reference/yaf/yaf_dispatcher/autorender.xml b/reference/yaf/yaf_dispatcher/autorender.xml index b41b55344a..76400fe1ed 100644 --- a/reference/yaf/yaf_dispatcher/autorender.xml +++ b/reference/yaf/yaf_dispatcher/autorender.xml @@ -17,10 +17,13 @@ Yaf_Dispatcher will render automatically after dispatches a incoming request, you can prevent the rendering by calling this method with flag TRUE + + + you can simply return FALSE in a action to prevent the auto-rendering of + that action + + - - - @@ -60,6 +63,7 @@ class IndexController extends Yaf_Controller_Abstract { Yaf_Dispatcher::getInstance()->autoRender(FALSE); } } + } ?> ]]> diff --git a/reference/yaf/yaf_dispatcher/disableview.xml b/reference/yaf/yaf_dispatcher/disableview.xml index 07a9c65be0..e83162830f 100644 --- a/reference/yaf/yaf_dispatcher/disableview.xml +++ b/reference/yaf/yaf_dispatcher/disableview.xml @@ -10,15 +10,18 @@ &reftitle.description; - public Yaf_DispatcherYaf_Dispatcher::disableView + public boolYaf_Dispatcher::disableView - + disable view engine, used in some app that user will output by theirself + + + you can simply return FALSE in a action to prevent the auto-rendering of + that action + + - - -