So I have my JavaScript making an Ajax call to /my_controller/ajax_action but then in the controller I don\'t know what to do to output something back to the Ja
/my_controller/ajax_action
AutoRender=false and Return json_encode($code)
public function returningJsonData($estado_id){ $this->autoRender = false; return json_encode($this->ModelBla->find('first',array( 'conditions'=>array('Bla.bla_child_id'=>$estado_id) ))); }