title: Cakephp empty $this->data after $.post submit through jquery
body: <p>I want to pass data to my ajax function in the controller, however the <code>$this-&gt;data</code> is empty. </p>
  
  <p>I have in the JS:</p>
  
  <pre><code>$.post('/teach/update_word', {one: '1', two: '2'}, function (data){
      alert(data);
  });
  </code></pre>
  
  <p>And in the Controller:</p>
  
  <pre><code>function update_word(){ // AJAX
      $output;
      if($this-&gt;data){
          $output['data']= 'yes';
      }else{
          $output['data']= 'no';
      }
      echo json_encode($output);
      die();
  }
  </code></pre>
  
  <p>My function always returns <code>{"data":"no"}</code>.</p>