loadLayout()->renderLayout(); return $this; } public function saveAction() { $countriesPrices = $this->_request->getParam('prices'); Mage::helper('orange35_shipping')->clearCountriesTable(); $model = Mage::getModel('orange35_shipping/country'); foreach ($countriesPrices as $countryCode => $prices) { $model->setCountryCode($countryCode); $model->setAdditionPrice($prices['price'] != 'null' ? $prices['price'] : null); $model->setPercent($prices['percent'] != 'null' ? $prices['percent'] : null); $model->save(); $model->setId(null); } $this->_redirect('*/*/edit'); } }