$this->setResponseInstance($responseInstance);
// Get the parameter from the request
- $commandName = $requestInstance->getRequestElement('page');
+ $commandName = $requestInstance->getRequestElement('command');
// If it is null then get default command
if (is_null($commandName)) {
// Get default command
- $commandName = $responseInstance->getDefaultCommand();
-
- // Default is 'page'
- $element = 'page';
-
- // Is the request type console?
- if ($responseType === 'console') {
- // Console applications have only commands
- $element = 'command';
- } // END - if
+ $commandName = $responseInstance->determineDefaultCommand();
// Set it in request
- $requestInstance->setRequestElement($element, $commandName);
+ $requestInstance->setRequestElement('command', $commandName);
} // END - if
// Get a controller resolver
<anchor-id><![CDATA[menu_login]]></anchor-id>
<anchor-text><![CDATA[Einloggen]]></anchor-text>
<anchor-title><![CDATA[Zum Spiel {?app_full_name?} einloggen]]></anchor-title>
- <anchor-href><![CDATA[index.php?app={?app_short_name?}&page=login]]></anchor-href>
+ <anchor-href><![CDATA[index.php?app={?app_short_name?}&command=login]]></anchor-href>
</anchor>
</entry>
<entry>
<anchor-id><![CDATA[menu_register]]></anchor-id>
<anchor-text><![CDATA[Anmeldung]]></anchor-text>
<anchor-title><![CDATA[Zur Anmeldeseite]]></anchor-title>
- <anchor-href><![CDATA[index.php?app={?app_short_name?}&page=register]]></anchor-href>
+ <anchor-href><![CDATA[index.php?app={?app_short_name?}&command=register]]></anchor-href>
</anchor>
</entry>
<entry>
<anchor-id><![CDATA[menu_infos]]></anchor-id>
<anchor-text><![CDATA[Informationen]]></anchor-text>
<anchor-title><![CDATA[Über dieses Spiel]]></anchor-title>
- <anchor-href><![CDATA[index.php?app={?app_short_name?}&page=infos]]></anchor-href>
+ <anchor-href><![CDATA[index.php?app={?app_short_name?}&command=infos]]></anchor-href>
</anchor>
</entry>
<entry>
<anchor-id><![CDATA[menu_pillory]]></anchor-id>
<anchor-text><![CDATA[Pranger]]></anchor-text>
<anchor-title><![CDATA[Zum Pranger]]></anchor-title>
- <anchor-href><![CDATA[index.php?app={?app_short_name?}&page=pillory]]></anchor-href>
+ <anchor-href><![CDATA[index.php?app={?app_short_name?}&command=pillory]]></anchor-href>
</anchor>
</entry>
</entry-list>
<anchor-id><![CDATA[menu_imprint]]></anchor-id>
<anchor-text><![CDATA[Impressum]]></anchor-text>
<anchor-title><![CDATA[Impressum]]></anchor-title>
- <anchor-href><![CDATA[index.php?app={?app_short_name?}&page=imprint]]></anchor-href>
+ <anchor-href><![CDATA[index.php?app={?app_short_name?}&command=imprint]]></anchor-href>
</anchor>
</entry>
<entry>
<anchor-id><![CDATA[menu_terms]]></anchor-id>
<anchor-text><![CDATA[ANBs]]></anchor-text>
<anchor-title><![CDATA[Allgemeine Nutzungsbedingungen (=ANBs)]]></anchor-title>
- <anchor-href><![CDATA[index.php?app={?app_short_name?}&page=terms]]></anchor-href>
+ <anchor-href><![CDATA[index.php?app={?app_short_name?}&command=terms]]></anchor-href>
</anchor>
</entry>
</entry-list>