Esempio n. 1
0
File: app.php Progetto: 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")));
}