public function fbdatagrid() { $m = new FbModel(); $result = $m->datagrid(); echo json_encode($result); }