smartsolutionsitaly / cakephp-locale-type
Locale type for CakePHP
Installs: 31
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- ext-intl: *
Requires (Dev)
- cakephp/cakephp: ^3.6
This package is auto-updated.
Last update: 2024-10-24 20:17:47 UTC
README
Locale type for CakePHP
Installation
You can install cakephp-locale-type into your project using Composer.
$ composer require smartsolutionsitaly/cakephp-locale-type
Setup
Insert at the bottom of your config/bootstrap.php file the following line:
Type::map('locale', 'SmartSolutionsItaly\CakePHP\Database\Type\LocaleType');
And add or edit the method _initializeSchema in your Table classes.
protected function _initializeSchema(\Cake\Database\Schema\TableSchema $schema) { $schema->setColumnType('your_column_name', 'locale'); return $schema; }
License
Licensed under The MIT License For full copyright and license information, please see the LICENSE Redistributions of files must retain the above copyright notice.
Copyright
Copyright (c) 2018-2019 Smart Solutions S.r.l. (https://smartsolutions.it)