PHP code example of smartsolutionsitaly / cakephp-locale-type

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

    

smartsolutionsitaly / cakephp-locale-type example snippets

 php
Type::map('locale', 'SmartSolutionsItaly\CakePHP\Database\Type\LocaleType');
 php
protected function _initializeSchema(\Cake\Database\Schema\TableSchema $schema)
{
    $schema->setColumnType('your_column_name', 'locale');

    return $schema;
}