API15

API15:JResponse

From Joomla! Documentation

Revision as of 01:05, 25 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Defined in

libraries/joomla/environment/response.php

Methods

Method name Description
allowCache Set/get cachable state for the response
setHeader Set a header
getHeaders Return array of headers;
clearHeaders Clear headers
sendHeaders Send all headers
setBody Set body content
prependBody Prepend content to the body content
appendBody Append content to the body content
getBody Return the body content
toString Sends all headers prior to returning the string

Importing

jimport( 'joomla.environment.response' );



Examples

Code Examples