smartsolutionsitaly/cakephp-color-type
Composer 安装命令:
composer require smartsolutionsitaly/cakephp-color-type
包简介
Color database type for CakePHP
README 文档
README
Color database type for CakePHP
Installation
You can install cakephp-color-type into your project using Composer.
composer require smartsolutionsitaly/cakephp-color-type
Setup
Insert at the bottom of your config/bootstrap.php file the following line:
Type::map('color', 'SmartSolutionsItaly\CakePHP\Database\Type\ColorType');
And add or edit the method _initializeSchema in your Table classes.
protected function _initializeSchema(\Cake\Database\Schema\TableSchema $schema) { $schema->setColumnType('your_column_name', 'color'); 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) 2019 Smart Solutions S.r.l. (https://smartsolutions.it)
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-05-24