I am struggling with disabling view in ZF2 $this->_helper->viewRenderer->setNoRender(); or (true)
with no luck as it always says there
PHP Fatal error: Call to a member function setNoRender() on a non-object in ../module/Location/src/Location/Controller/LocationController.php on line 190
simply return false.
I found a simple solution for disable layout. In my
ajaxAction
And in
\module\Application\view\layout\ajax-layout.phtml