function excluir() { $id = $this->getParam('id'); $produtosModel = new produtosModel(); $produtosModel->del($id); Header("Location: /produtos"); }