} else {
         //my_print($errors);
         $model = $_REQUEST;
         $view = "drink/edit.php";
     }
     break;
 case 'edit_GET':
     $model = Drink::Get($_REQUEST['id']);
     $view = "drink/edit.php";
     break;
 case 'delete_GET':
     $model = Drink::Get($_REQUEST['id']);
     $view = "drink/delete.php";
     break;
 case 'delete_POST':
     $errors = Drink::Delete($_REQUEST['id']);
     if ($errors) {
         $model = Drink::Get($_REQUEST['id']);
         $view = "drink/delete.php";
     } else {
         header("Location: ?sub_action={$sub_action}&id={$_REQUEST['id']}");
         die;
     }
     break;
 case 'search_GET':
     $model = Drink::Search($_REQUEST['q']);
     $view = 'drink/index.php';
     break;
 case 'index_GET':
 default:
     $model = Drink::Get();