Ejemplo n.º 1
0
Archivo: app.php Proyecto: nebiros/yasc
/**
 * @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")));
}