} // END - if
// ... and a new response object
- $responseClass = sprintf("%sResponse", $this->convertToClassName($response));
+ $responseClass = sprintf('%sResponse', $this->convertToClassName($response));
$responseInstance = ObjectFactory::createObjectByName($responseClass, array($this));
// Remember response instance here
$this->setResponseInstance($responseInstance);
// Get the parameter from the request
- $commandName = $requestInstance->getRequestElement('command');
+ $commandName = $requestInstance->getRequestElement('page');
// If it is null then get default command
if (is_null($commandName)) {
$commandName = $responseInstance->getDefaultCommand();
// Set it in request
- $requestInstance->setRequestElement('command', $commandName);
+ $requestInstance->setRequestElement('page', $commandName);
} // END - if
// Get a controller resolver
// Get a controller instance as well
$this->setControllerInstance($resolverInstance->resolveController());
+ // Initialize language system
+ $languageInstance = ObjectFactory::createObjectByConfiguredName('language_system_class');
+
+ // And set it here
+ $this->setLanguageInstance($languageInstance);
+
// Launch the main routine here
$this->getControllerInstance()->handleRequest($requestInstance, $responseInstance);
}
+ /**
+ * Assigns extra application-depending data
+ *
+ * @param $templateInstance An instance of a CompileableTemplate
+ * @return void
+ * @todo Nothing to add?
+ */
+ public function assignExtraTemplateData (CompileableTemplate $templateInstance) {
+ }
+
/**
* Handle the indexed array of fatal messages and puts them out in an
* acceptable fasion