App\services\View::json PHP 메소드

json() 공개 정적인 메소드

function reload
public static json ( )
    public static function json()
    {
        @header('Content-type: application/json; charset=utf-8');
        $args = func_get_args();
        if (count($args) == 1) {
            self::jsonCustom($args[0]);
        } elseif (count($args) == 2) {
            self::jsonException($args[0], $args[1]);
        }
    }