// 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";
$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