Missing configuration entry added
[shipsimu.git] / application / ship-simu / main / commands / web / class_WebShipsimuRefillCommand.php
index 300a6e801d816bcb570fd0f1ef1facf29f0b1cb6..d296235ea868d5a58b5a1178038abb4c20fcc422 100644 (file)
@@ -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');
        }