protected function returnSuccess($rawData = array(), $withMessage=true)
    {
        $data = array();
        if ($withMessage) {
            $data['success'] = true;
            $data['data'] = $rawData;
            $data['version'] = TAO_VERSION;
        } else {
            $data = $rawData;
        }

        $this->returnJson($data);
//        exit(0);
    }
protected function returnSuccess($rawData = array(), $withMessage=true)
    {
        $data = array();
        if ($withMessage) {
            $data['success'] = true;
            $data['data'] = $rawData;
            $data['version'] = TAO_VERSION;
        } else {
            $data = $rawData;
        }

        $this->returnJson($data);
//        exit(0);
    }
protected function returnSuccess ( $ rawData = array ( ) , $ withMessage = true ) { $ data = array ( ) ; if ( $ withMessage ) { $ data [ 'success' ] = true ; $ data [ 'data' ] = $ rawData ; $ data [ 'version' ] = TAO_VERSION ; } else { $ data = $ rawData ; } $ this -> returnJson ( $ data ) ; //        exit(0); }
Return a successful http response

@param array $rawData
@param bool $withMessage
Return a successful http response