$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");
// 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");
* @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');
}