public function executeDelete() { $address = AddressPeer::retrieveByPk($this->getRequestParameter('id')); $this->forward404Unless($address); $address->delete(); return $this->redirect('address/list'); }
public function executeDelete() { $address = AddressPeer::retrieveByPk($this->getRequestParameter('id')); $this->forward404Unless($address); $address->delete(); return $this->redirect('address/list'); }