title: Execute AJAX call in PHP MVC?
body: <p>I am using the PHP framework "KissMVC", at kissmvc.com.</p>
  
  <p>But there aren't any examples of how to execute a AJAX call in the 'view'-page.
  Does anyone know how to do that?</p>
  
  <p>This is the code a placed in the view:</p>
  
  <pre><code>jQuery.ajax(
  {
      type: "POST",
      url: '&lt;?php echo myUrl(CONTROLLER_PATH); ?&gt;' + "register",
      data:
      {
         user_name: reg_username,
  
      }
  });
  </code></pre>