Initialization Function captcha()

protected final function captcha()

Summary

This function automatically includes the required JavaScript for a CAPTCHA, and provides you with the HTML code needed to display the CAPTCHA.

Where You Can Use It

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

Description

You should place the code this function returns place this HTML code in a Merge Field in a form in your Plugin.

It is safe to use both when displaying a page normally and when refreshing via AJAX.

Example

$mergeFields['Captcha'] = $this->captcha();