Esempio n. 1
0
 public function executeDelete()
 {
     $file = sfFileGalleryPeer::retrieveByPk($this->getRequestParameter('id'));
     $this->forward404Unless($file);
     $file->delete();
     return $this->redirect('file/list');
 }