Initialization Function forcePageReload()

protected final function forcePageReload(
$reload = true
)

Summary

Allows you to remove your Plugin's ability to reload by AJAX, and force a page reload instead.

Where You Can Use It

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

Description

You should always call this function if your Plugin writes <script> tags to the page.

Alternately, you should call this function if you think that an action that your Plugin has just take might affect something else on the page.

Parameters

$reload

You can pass a value of false to forcePageReload() to cancel any previous call of forcePageReload().

Example

public function init() {
    $this->forcePageReload();
    return true;
}