title: Displaying a view from a controller using phalcon php
body: <p>Happy new year guys! </p>
  
  <p>I'm trying to wire up a small phalcon project from scratch, but I am having trouble displaying a view. I am able to call the controller action using an ajax request from my js file </p>
  
  <pre><code>$('#create_user').click(function () {
      $.ajax({
          url: "/user/create",
          dataType: "json",
          success: function (resp) {
              console.log('successfully getting create page: ' + resp);
          },
          error: function (x, status, error) {
              console.log(x.responseText);
              console.log(error);
          },
          complete: function () {
          }
      });
  });
  </code></pre>
  
  <p>which I confirmed by setting a breakpoint in the action.</p>
  
  <pre><code>&lt;?php
  
  use Phalcon\Mvc\Controller;
  
  class UserController extends Controller
  {
      public function indexAction()
      {
  
      }
  
      public function createAction()
      {
          $this-&gt;assets
              -&gt;addJs('js/jquery.js')
              -&gt;addJs('js/user.js');
  
          $this-&gt;view-&gt;pick('/users/create');
      }
  }
  </code></pre>
  
  <p>However, the view doesn't seem to get picked, and the html text of the current view is returned to the error function of the ajax request. 
  I don't konw what i'm doing wrong, please help</p>