helpers/classes/Response.php
/**
     * Creates generic JSON response from provided data and exits after printing.
     *
     * @param string $code
     * @param string $msg
     * @param string $detail
     */
Creates generic JSON response from provided data and exits after printing.
Creates generic JSON response from provided data and exits after printing .
public static function sendResponse($code, $msg, $detail = '') {
        header('content-type: application/json; charset=utf-8');
        echo self::getResponse($code, $msg, $detail);
        exit();
    }
public static function sendResponse ( $ code , $ msg , $ detail = '' ) { header ( 'content-type: application/json; charset=utf-8' ) ; echo self :: getResponse ( $ code , $ msg , $ detail ) ; exit ( ) ; }
Creates generic JSON response from provided data and exits after printing.
Creates generic JSON response from provided data and exits after printing .