public static function execute(ApplicationAbstract $application) { $data = array('name' => $_POST['zone_name'], 'code' => $_POST['zone_code'], 'country_id' => $_GET['id']); if (Countries::saveZone(isset($_GET['zID']) && is_numeric($_GET['zID']) ? $_GET['zID'] : null, $data)) { Registry::get('MessageStack')->add(null, OSCOM::getDef('ms_success_action_performed'), 'success'); } else { Registry::get('MessageStack')->add(null, OSCOM::getDef('ms_error_action_not_performed'), 'error'); } OSCOM::redirect(OSCOM::getLink(null, null, 'id=' . $_GET['id'])); }