PAGE Methods

header()

Set HTTP Header for current page request. If you wish to change the output filetype please use the mime() method. The method will return all(!) currently set header information.

array header([ string set ])

Return

Method will set the HTTP Header and return an array containing all header information set by any of the methods in this section!

Parameter
Description
setSet HTTP Header

Set HTTP Header

$PAGE->header("Refresh: 10; url=" .$NAVI->href())
RETURN: ARRAY [6]

Get current header information

$PAGE->header()
Array ( [0] => text/html [1] => HTTP/1.1 200 OK [2] => Expires: Fri, 19 Apr 2024 00:11:18 GMT; [3] => Cache-Control: no-store; [4] => Last-Modified: Fri, 19 Apr 2024 01:11:18 GMT; [5] => Refresh: 10; url=/api/page/header )