globaloxs / yii2-gpaci
Google Places Auto Complete input widget for Yii2
dev-master / 1.0.x-dev
2016-05-16 19:36 UTC
Requires
- bower-asset/geocomplete: *
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-11-01 21:17:25 UTC
README
Google Places Auto Complete widget for Yii2
##Installation
composer require globaloxs/yii2-gpaci
Or add below to your composer.json
file
"require": {
"globaloxs/yii2-gpaci" : "*"
}
##Usage
Using widget and model.
use globaloxs\widgets\InputPlace;
echo InputPlace::widget([
'model' => $model,
'attribute' => 'location'
]);
Using widget for custom field name and value.
echo InputPlace::widget([
'name' => 'place'
'value' => 'Mexico'
]);