m1roff / yii2-dadata
Handy module for using dadata.ru service
Installs: 520
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- skeeks/yii2-dadata-suggest-api: ^1.0
- yiisoft/yii2: ^2.0
- yiisoft/yii2-bootstrap: ^2.0
- yiisoft/yii2-jui: ^2.0
README
Подключение
В конфиг файле
'modules' => [ 'dadata' => [ 'class' => 'm1roff\dadata\Module', 'token' => '', 'secret' => '', ], ],
Использование
Гражданство
$form->field($model, 'citizenship')->widget(SuggestWidget::class, [ 'type' => SuggestWidget::TYPE_CITIZENSHIP, 'options' => [ 'placeholder' => 'Гражданство', 'class' => 'form-control input-lg lrr-input', ], ])