2009年10月18日星期日

Re: [fw-mvc] how to disable default view render

-- huajun qi <qihjun@gmail.com> wrote
(on Monday, 19 October 2009, 11:42 AM +0800):
> Though I once read an article about it, I can not recall it now?
>
> Anybody can tell me?

If you want to disable it for your entire application, you can set the
noViewRenderer parameter of the front controller to a boolean true. This
can be done in two ways:

// Directly:
$front->setParam('noViewRenderer', true);

or, using Zend_Application, just pass a key:

resources.frontcontroller.params.noViewRenderer = true

--
Matthew Weier O'Phinney
Project Lead | matthew@zend.com
Zend Framework | http://framework.zend.com/

没有评论: