captcha\Captcha checkRequirements()

checkRequirements() public static method

Checks if there is graphic extension available to generate CAPTCHA images.

This method will check the existence of ImageMagick and GD extensions.

public static string checkRequirements ( )
return string

The name of the graphic extension, either "imagick" or "gd".

throws yii\base\InvalidConfigException

if neither ImageMagick nor GD is installed.

doc_Yii
2016-10-30 16:54:22
Comments
Leave a Comment

Please login to continue.