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