*
* @return $thisInstance An instance of this class
*/
- public final static function getInstance () {
+ public static final function getInstance () {
// Is the instance there?
if (is_null(self::$thisInstance)) {
self::$thisInstance = new ApplicationHelper();
$commandName = $responseInstance->getDefaultCommand();
// Set it in request
- $requestInstance->setRequestElement('page', $command);
+ $requestInstance->setRequestElement('page', $commandName);
} // END - if
// Get a resolver
$this->controllerInstance = $resolverInstance->resolveController();
// Get a web output class
- $outputInstance = ObjectFactory::createObjectByConfiguredName('output_class');
+ $outputInstance = ObjectFactory::createObjectByConfiguredName('output_class', array($this));
// Set it in this application
$this->setWebOutputInstance($outputInstance);