Neil的备忘录

just do it
posts - 66, comments - 8, trackbacks - 0, articles - 0
Just a quick tip: I’m working on a project using Zend Framework and needed to switch off layout and view renderer for a specific controller. This can be achieved by adding the following calls to the controller’s preDispatch() method:
public function preDispatch()
{
    
$this->_helper->layout()->disableLayout();
    
$this->_helper->viewRenderer-   >setNoRender(true);
}


只有注册用户登录后才能发表评论。


网站导航: