title: How to render a different view in controller action of ZF2
body: <p>How to render a different view other than default in controller action. by default it try to find the same view as action in the view folder but I would like render different view available in views folder for controler action. </p>
  
  <p>We can do this ZF1 like this <code>$this-&gt;_helper-&gt;viewRenderer('foo');</code></p>
  
  <p>Can Anyone know, how to achieve above in Zendframework 2?</p>
  
  <p>We can disabled the view using </p>
  
  <pre><code>$response = $this-&gt;getResponse();
          $response-&gt;setStatusCode(200);
          $response-&gt;setContent("Hello World");
          return $response;
  </code></pre>
  
  <p>I don't know how to change/render a different view in zf2.</p>