Beispiel #1
0
 public function executeDelete(sfWebRequest $request)
 {
     $request->checkCSRFProtection();
     $this->forward404Unless($forum = ForumPeer::retrieveByPk($request->getParameter('id')), sprintf('Object forum does not exist (%s).', $request->getParameter('id')));
     $forum->delete();
     $this->redirect('forums/index');
 }