How do I return response from the controller back to the Jquery Javascript?
Javascript
$(\'.signinform\').submit(function() { $(this).ajaxSubmit(
return $this->output ->set_content_type('application/json') ->set_status_header(500) ->set_output(json_encode(array( 'text' => 'Error 500', 'type' => 'danger' )));