public function indexAction() { $checkoutMapper = new CheckoutMapper(); $checkout = $checkoutMapper->getEntries(); $amount = $checkoutMapper->getAmount(); $amountplus = $checkoutMapper->getAmountPlus(); $amountminus = $checkoutMapper->getAmountMinus(); $this->getLayout()->getHmenu()->add($this->getTranslator()->trans('checkout'), array('action' => 'index')); $this->getView()->set('checkout', $checkout); $this->getView()->set('amount', $amount); $this->getView()->set('amountplus', $amountplus); $this->getView()->set('amountminus', $amountminus); $this->getView()->set('checkout_contact', $this->getConfig()->get('checkout_contact')); }
public function delAction() { if ($this->getRequest()) { $checkoutMapper = new CheckoutMapper(); $id = $this->getRequest()->getParam('id'); $checkoutMapper->deleteById($id); $this->addMessage('deleteSuccess'); $this->redirect(array('action' => 'index')); } }