User login (non-guest) basicly finished, news stubs added, registration and final...
[shipsimu.git] / application / ship-simu / class_ApplicationHelper.php
index c8057d44099809b2b8d7a9cef3a2290f51023be6..f499c4817cacc3493d79ee967f05a18229472fe4 100644 (file)
@@ -185,7 +185,11 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
                $requestInstance = ObjectFactory::createObjectByName('HttpRequest');
 
                // ... and a new response object
-               $responseInstance = HttpResponse::createHttpResponse($this);
+               $responseInstance = ObjectFactory::createObjectByName('HttpResponse', array($this));
+
+               // Remember both in this application
+               $this->setRequestInstance($requestInstance);
+               $this->setResponseInstance($responseInstance);
 
                // Get the parameter from the request
                $commandName = $requestInstance->getRequestElement("page");