common($tpl,$db,$def,$model,$m); if ($_GET['m'] == 'xjh'){ return true; }else{ return false; } } public function render_json($error='', $msg='', $data = array()) { $result = array( 'error' => $error, 'msg' => $msg, 'data' => $data ); header('content-type:application/json; charset=utf-8'); echo json_encode($result); exit; } } ?>