/** * Delete action. Removes the specified key. */ public function deleteAction() { $crypto = new CryptoModel(array('cryptoID' => $this->_getParam('id'))); $crypto->delete(); $this->flash('notice', 'Key successfully deleted'); $this->_redirector->gotoRoute(array('action' => 'index', 'id' => null)); }