forcePageReload()
protected final function forcePageReload($reload = true)
Allows you to remove your Plugin's ability to reload by AJAX, and force a page reload instead.
Can be used in your plugin's init()
method, from Zenario 7.0.0 onwards.
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.
$reload
You can pass a value of false
to forcePageReload()
to cancel any previous call of forcePageReload()
.
public function init() { $this->forcePageReload(); return true; }