Hi,

I want to render views by viewRenderer automatic for a module, and another
one by manual.For example,i want that admin module to render view by
viewRenderer,and default module to render view by explicit.

so i setParam('noViewRenderer', true) in the bootstrap file,and register a
plugin to hook the preDispatch() event,then check if the module is admin or
not,
if yes,then call

Zend_Controller_Front::getInstance()->setParam('noViewRenderer', false);

And i found that,$front->setParam('noViewRenderer',false) not affect the
result,because setParam in Front controller not affect the params in the
dispather.
So i change:
    Zend_Controller_Front::getInstance()->setParam('noViewRenderer',
false);
To

Zend_Controller_Front::getInstance()->getDispatcher()->setParam('noViewRenderer',
false);
And it is OK.

But another problem is arise.

Reply via email to