Initialization Function headerRedirect()

protected final function headerRedirect(
$link
)

Description

This takes the Visitor to a different url, either using an actual header redirect, or by using JavaScript if your Plugin is reloading via AJAX.

Where You Can Use It

Can be used in your plugin's init() method, from Zenario 7.0.0 onwards.

Parameters

$link

A URL to go to.

Example

$this->headerRedirect($this->linkToItem($cID, $cType, true));

Redirect to a Content Item.