/** * @DELETE("/delete") */ function destroy() { Yasc_App::view()->layout()->disable(); // $mysql = Yasc_App::config()->getOption("db"); // $mysql->delete("table1", "id = {$_POST["id"]}"); return header("Location: " . Yasc_App::viewHelper("url")->url(array("path" => "/update"))); }