diff --git a/README.md b/README.md index 4f5aba3..f90cc74 100644 --- a/README.md +++ b/README.md @@ -27,10 +27,10 @@ to the `require` section of your `composer.json` file. ## Usage ```php -use farystha\widgets\JqueryTagsInput; +use faryshta\widgets\JqueryTagsInput; // with ActiveForm -echo $form->field($model, 'attribute')->widget(JqueryTagsInput::className() [ +echo $form->field($model, 'attribute')->widget(JqueryTagsInput::className(), [ // extra configuration ]); diff --git a/widgets/JqueryTagsInput.php b/widgets/JqueryTagsInput.php index f140b43..d68c647 100644 --- a/widgets/JqueryTagsInput.php +++ b/widgets/JqueryTagsInput.php @@ -93,8 +93,8 @@ protected function registerScript() { $view = $this->getView(); if (isset($this->clientOptions['autocomplete_url'])) { - if (class_exists('yii\jui\AutoComplete')) { - \yii\jui\AutoComplete::register($view); + if (class_exists('yii\jui\JuiAsset')) { + \yii\jui\JuiAsset::register($view); } else { throw new InvalidConfigException( 'To use autocomplete functionality you need to install the '