X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=application%2Fadmin%2Fclass_ApplicationHelper.php;h=53d3fc3e6e8947782c21ffd1374f109cb7c38650;hb=eda904975200846aa0ee2fb52b6eebab923a76af;hp=e1af8620c08f25dd4b28a221c31183e4d66d18b4;hpb=ddfc10f7a40e978fe1a2792aab8d40cebc032845;p=admin.git diff --git a/application/admin/class_ApplicationHelper.php b/application/admin/class_ApplicationHelper.php index e1af862..53d3fc3 100644 --- a/application/admin/class_ApplicationHelper.php +++ b/application/admin/class_ApplicationHelper.php @@ -175,6 +175,9 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication // 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"; @@ -190,8 +193,7 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication $responseClass = sprintf("%sResponse", $this->convertToClassName($response)); $responseInstance = ObjectFactory::createObjectByName($responseClass, array($this)); - // Remember both in this application - $this->setRequestInstance($requestInstance); + // Remember response instance here $this->setResponseInstance($responseInstance); // Get the parameter from the request