(Yaf >=1.0.0)
Yaf_Dispatcher::autoRender — ����/�ر��Զ���Ⱦ����
�ڿ����������(YafĬ�Ͽ���)��actionִ������Ժ�Yaf_Dispatcher ���Զ�����view����ȥ��Ⱦ��action��Ӧ����ͼģ�塣
��Ҳ����ͨ����������������� flag
������ֵ��ΪTRUE���˹���Ԥ����
Note:
�������һ��action�н�������FALSE����ֹ��ǰaction��Ӧ��ͼ���Զ���Ⱦ
flag
bool
Example #1 Yaf_Dispatcher::autoRender()example
<?php
class IndexController extends Yaf_Controller_Abstract {
/* init method will be called as soon as a controller is initialized */
public function init() {
if ($this->getRequest()->isXmlHttpRequest()) {
//do not call render for ajax request
//we will outpu a json string
Yaf_Dispatcher::getInstance()->autoRender(FALSE);
}
}
}
?>
�������̵���������ڣ�