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