PHP code example of mixable / cakephp-locatable

1. Go to this page and download the library: Download mixable/cakephp-locatable 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/ */

    

mixable / cakephp-locatable example snippets


$this->addBehavior('Locatable.Locatable');

$model->coordinate->latitude;
$model->coordinate->longitude;

$this->Form->control('coordinate.latitude');
$this->Form->control('coordinate.longitude');