How to disable layout in Zend Framework 3?
Trying to get response from an Ajax call, it needs layout to be disabled.
Here it is
public function indexAction(){ $view = new \Zend\View\Model\ViewModel(); $view->setTerminal(true); return $view; }
Here it is