PAGE Methods
Including templates and objects
content(), module(), object()Request content via AJAX
collect(), complete(), elements(), element()Insert code (CSS, JS, HTML)
style(), script(), meta(), bottom(), tracking()Template data
directory(), views(), details(), preview(), charset(), language(), error()Reading and writing META data
title(), topic(), descr(), claim(), robots(), keywords()HTTP header
mime(), status(), expires(), header(), download()
status()
Set or return page's http status code.
string status([ int code ])
Return
Status code
Parameter
Description
codeSet status code
Get current status code
$PAGE->status()
RETURN: 'HTTP/1.1 200 OK'
Set status code for this page
$PAGE->status(418)
RETURN: 'HTTP/1.1 418 I'm a teapot'