disabling view with in action in ZF2

前端 未结 9 607
滥情空心
滥情空心 2020-12-24 03:10

I am struggling with disabling view in ZF2 $this->_helper->viewRenderer->setNoRender(); or (true) with no luck as it always says there



        
9条回答
  •  囚心锁ツ
    2020-12-24 03:49

    Just return '' in the Method and it will not autoload the View template

    public function goAction()
    {   
        return '';
    }
    

提交回复
热议问题