예제 #1
0
 public static function destroy($id)
 {
     self::check_logged_in();
     $tulos = new tulos(array('id' => $id));
     $tulos->destroy($id);
     Redirect::to('/tulokset', array('message' => 'Tulos on poistettu.'));
 }