<?php
$id = $_GET['id']??'';
$this->view->flash('add ?id=1 to the url to remove that customer.', 'info');
if(is_integer($id)){
$customer = new \customer();
$customer->get_by_id($id);
if($customer->still_exists()){
if($customer->delete()){
$this->view->flash('Object deleted', 'success');
}
}
}