Http\Response
Class Phalcon\Http\Response
implements Phalcon\Http\ResponseInterface, Phalcon\DI\InjectionAwareInterface
Part of the HTTP cycle is return responses to the clients. Phalcon\HTTP\Response is the Phalcon component responsible to achieve this task. HTTP responses are usually composed by headers and body.
$response = new Phalcon\Http\Response(); $response->setStatusCode(200, "OK"); $response->setContent("<html><body>Hello</body></html>"); $response->send();
Methods
public __construct ([string $content], [int $code], [string $status])
Phalcon