Quick links: Content - sections - sub sections
EN

Trace: selectors principes affichage overloads file 1.0beta3.1 responses responses 1.0beta3.1 jresponse

Wiki: Sitemap - Recent changes - Back link

A jResponse object handles the control and the correct generation of the response, the output data. It represents the view in the MVC pattern. Every display command use this object.

There is a class extending jResponse for each format that we want to handle : html, text, binary files, pdf, XML-RPC etc… or for other types of output, like the redirection.

A jResponse object implements some methods, here are the more useful of them :

  • addHttpHeader(): to add some HTTP header which will be sent at the right time
  • setHttpStatus(): to set the http code (200, 404,…)

This methods are available in all type of response.

To know all specificities of all response, see the chapter about responses.

en/manual-1.0/jresponse.txt · Last modified: 2008/11/19 16:02 (external edit)
Recent changes RSS feed Creative Commons License