PHP code example of flaviovs / yii2-geocomplete
1. Go to this page and download the library: Download flaviovs/yii2-geocomplete library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
flaviovs / yii2-geocomplete example snippets
'components' => [
'assetManager' => [
'bundles' => [
fv\yii\geocomplete\Asset::class => [
'mapsApiKey' => 'YOUR-API-KEY',
]
]
]
];
<?= $form->field($model, 'address')
->widget(\fv\yii\geocomplete\Widget::class)
<?= $form->field($model, 'address')
->widget(\fv\yii\geocomplete\Widget::class)