michalsn/codeigniter-tags
最新稳定版本:v1.1.2
Composer 安装命令:
composer require michalsn/codeigniter-tags
包简介
Tags for CodeIgniter 4 framework
README 文档
README
A library that helps you build tags functionality around your existing models in the CodeIgniter 4 framework.
Installation
composer require michalsn/codeigniter-tags
Migrate your database:
php spark migrate --all
Configuration
Add HasTags trait to your model and initialize tags with initTags() method.
class ExampleModel extends BaseModel { use HasTags; // ... protected function initialize() { $this->initTags(); } // ... }
And if you use Entity class, add TaggableEntity trait to it:
class Example extends Entity { use TaggableEntity; // ... }
Docs
统计信息
- 总下载量: 3.49k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-28