disabling view with in action in ZF2

前端 未结 9 652
滥情空心
滥情空心 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条回答
  •  萌比男神i
    2020-12-24 03:24

    I would say just disabled the layout only

    $viewModel = new ViewModel();
    $viewModel->setTerminal(true);
    
    return $viewModel;
    

    and echo your json into your view files...

提交回复
热议问题