title: CakePHP - How to return string (like JSON) from controller action to Ajax request
body: <p>So I have my JavaScript making an Ajax call to <code>/my_controller/ajax_action</code> but then in the controller I don't know what to do to output something back to the JavaScript.</p>
  
  <p>I am getting errors because there is no view for <code>MyController::ajaxAction()</code> but obviously there is no view for it, so what do I do?</p>