From: Roland Häder Date: Sun, 21 Dec 2008 04:56:04 +0000 (+0000) Subject: Missing configuration entry added X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=13f890c63dd0c211d9b8e2989051df2fbc20a907;p=shipsimu.git Missing configuration entry added --- diff --git a/application/ship-simu/config.php b/application/ship-simu/config.php index 00973d7..ca1565d 100644 --- a/application/ship-simu/config.php +++ b/application/ship-simu/config.php @@ -38,7 +38,7 @@ $cfg->setConfigEntry('default_image_command', "build"); $cfg->setConfigEntry('page_with_news', "home"); // CFG: FORM-ACTION -$cfg->setConfigEntry('form_action', "index.php?app={?app_short_name?}&page=do_form"); +$cfg->setConfigEntry('form_action', "index.php?app={?app_short_name?}&page=do_form"); // CFG: FORM-METHOD $cfg->setConfigEntry('form_method', "post"); @@ -130,6 +130,9 @@ $cfg->setConfigEntry('login_government_startup_failed_url', "index.php?app={?app // CFG: LOGIN-GOVERNMENT-TRAINING-FAILED-URL $cfg->setConfigEntry('login_government_training_failed_url', "index.php?app={?app_short_name?}&page=government_failed&failed=training"); +// CFG: REFILL-PAGE-CURRENCY-DONE-URL +$cfg->setConfigEntry('refill_page_done_url', "index.php?app={?app_short_name?}&page=login_area&action=refill_done&done={?refill_done?}&amount={?amount?}"); + // CFG: LOGIN-DEFAULT-ACTION $cfg->setConfigEntry('login_default_action', "welcome"); diff --git a/application/ship-simu/main/commands/web/class_WebShipsimuRefillCommand.php b/application/ship-simu/main/commands/web/class_WebShipsimuRefillCommand.php index 300a6e8..d296235 100644 --- a/application/ship-simu/main/commands/web/class_WebShipsimuRefillCommand.php +++ b/application/ship-simu/main/commands/web/class_WebShipsimuRefillCommand.php @@ -61,6 +61,13 @@ class WebShipsimuRefillCommand extends BaseCommand implements Commandable { * @return void */ public function execute (Requestable $requestInstance, Responseable $responseInstance) { + // Get template instance + $templateInstance = $responseInstance->getTemplateInstance(); + + // Set amount and type as variables + $templateInstance->assignVariable('refill_done', $requestInstance->getRequestElement('type')); + $templateInstance->assignVariable('amount' , $requestInstance->getRequestElement('amount')); + // This method does currently redirect if all goes right $responseInstance->redirectToConfiguredUrl('refill_page_done'); }