public function executeDelete($request) { $this->forward404Unless($request->getMethod() == sfRequest::POST); $id = $request->getParameter('id'); $podcast_feed = FeedPeer::retrieveByPK($id); $this->forward404Unless($podcast_feed); //$this->getUser()->setFlash('notice','Deleted feed '.$podcast_feed->getTitle()); $podcast_feed->delete(); $this->redirect('podcast/edit?id=' . $podcast_feed->getPodcastId()); }