frostealth/yii2-array-field
最新稳定版本:v1.0.2
Composer 安装命令:
composer require frostealth/yii2-array-field
包简介
Behavior that allows you to store arrays in attributes
README 文档
README
This Yii2 model behavior allows you to store arrays in attributes.
Installation
Run the Composer command to install the latest stable version:
composer require frostealth/yii2-array-field @stable
Usage
Just attach the behavior to your model.
use frostealth\yii2\behaviors\ArrayFieldBehavior; public function behaviors() { return [ [ 'class' => ArrayFieldBehavior::className(), 'attributes' => ['attribute1', 'attribute2'], // 'defaultEncodedValue' => null, // 'defaultDecodedValue' => [], ], ]; }
License
The MIT License (MIT). See LICENSE.md for more information.
统计信息
- 总下载量: 12.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-06-20