I want to use some ajax, but I don\'t know how to use function as the same as setNoRender() in zend framework 2 to disable for render view.
How to disable rendering v
If you're using JSON, then look at the view's JsonStrategy
and return a JsonModel
from you controller. See this article.
Alternatively, you can return an Response
from your controller and the whole view layer is skipped:
public function testAction()
{
$response = $this->getResponse();
$response->setStatusCode(200);
$response->setContent('foo');
return $response;
}