public function delete() { $obj = new Modulo(); $p = $obj->delete($_GET['id']); if ($p[0]) { header('Location: index.php?controller=Modulo'); } else { $data = array(); $view = new View(); $data['msg'] = $p[1]; $data['url'] = 'index.php?controller=Modulo'; $view->setData($data); $view->setTemplate('../view/_Error_App.php'); $view->setLayout('../template/Layout3.php'); $view->render(); } }