From e56d36f20470c21df0efe728691e8f8633ff828b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 21 Aug 2009 17:43:57 +0000 Subject: [PATCH] Web output instance added --- application/admin/class_ApplicationHelper.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/application/admin/class_ApplicationHelper.php b/application/admin/class_ApplicationHelper.php index de49477..a0c7962 100644 --- a/application/admin/class_ApplicationHelper.php +++ b/application/admin/class_ApplicationHelper.php @@ -172,15 +172,21 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication * @return void */ public final function entryPoint () { + // Get a web output class + $outputInstance = ObjectFactory::createObjectByConfiguredName('output_class'); + + // Set it in this application + $this->setWebOutputInstance($outputInstance); + // Create a new request object $requestInstance = ObjectFactory::createObjectByName('HttpRequest'); // Remember request instance here $this->setRequestInstance($requestInstance); - // Default response is HTTP (HTML page) and type is "Web" - $response = "http"; - $responseType = "web"; + // Default response is HTTP (HTML page) and type is 'Web' + $response = 'http'; + $responseType = 'web'; // Do we have another response? if ($requestInstance->isRequestElementSet('request')) { -- 2.39.5