public function getDetailItem() { $row = MatModel::getDetail($_POST['mat_id']); echo json_encode($row); }