/** * function show * render and return content * @param int $data * @return null|string */ function show($data = 0) { return str_replace(['\\r', '\\n', '\\'], '', Data::compose_news(true, str_replace('.en', '', Misc::escape_text($data)))); }
/** * function show * render and return content */ function show() { header('Content-type: application/json'); return Data::compose_news(true); }