diff --git a/framework/captcha/Captcha.php b/framework/captcha/Captcha.php index 84f13d5d8b..e85cb352d7 100644 --- a/framework/captcha/Captcha.php +++ b/framework/captcha/Captcha.php @@ -50,7 +50,7 @@ use yii\widgets\InputWidget; * method, for example like this: * * ```php - * field($model, 'captcha')->widget(\yii\widgets\Captcha::classname(), [ + * field($model, 'captcha')->widget(\yii\captcha\Captcha::classname(), [ * // configure additional widget properties here * ]) ?> * ```