API16

JResponse/clearHeaders

From Joomla! Documentation

< API16:JResponse
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Clear headers.



Syntax[edit]

static clearHeaders()


Defined in[edit]

libraries/joomla/environment/response.php

Importing[edit]

jimport( 'joomla.environment.response' );

Source Body[edit]

public static function clearHeaders() {
        $GLOBALS['_JRESPONSE']->headers = array();
}



Examples[edit]

Code Examples[edit]