// Test if the required parameter is set
try {
// This goes fine so let's resolv the command
- $commandName = $requestInstance->getRequestElement($this->getConfigInstance()->readConfig('command_parameter'));
+ $commandName = $requestInstance->getRequestElement("page");
// Is the command empty? Then fall back to default command
if (empty($commandName)) $commandName = $this->getConfigInstance()->readConfig('default_command');
// Still not found?
throw new InvalidCommandException(array($this, $defaultCommand), self::EXCEPTION_INVALID_COMMAND);
}
- }
+ } // END - if
// Initiate the command
$commandInstance = ObjectFactory::createObjectByName($className, array($this));