What's the proper way to return an AJAX response within an ExpressionEngine module?
Good ole' echo "foo"; die();
seems to work but there must be a better way!
I tried the CodeIgniter approach $this->EE->output->set_output(json_encode($array));
Thanks for the help!