public function removeLubricant() { require 'models/Stocks_model.php'; $id = $_POST['ID']; $model = new Stocks_model(); $model->removeLubricant($id); echo "Done"; }