Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

yii2-klard

widgets for easy integration kladr.ru (autocomplete regions, citys, street, etc.) in Yii2

install: composer require andkon/yii2kladr

use:

$address = new Address(); // your address model

$form = ActiveForm::begin(); // your form

echo $form->field($address, 'city_id')
    ->widget(Kladr::className(), [
            'type'    => Kladr::TYPE_CITY,
        'options' => [
            'placeHolder' => $model->getAttributeLabel('city_id'),
            'class' => 'form__input'
        ]
    ])
    ->label(false);

About

widgets for easy integration kladr.ru (autocomplete regions, citys, street, etc.) in Yii2

Topics

Resources

Packages

No packages published

Languages

You can’t perform that action at this time.