yii2-contenttypes
This extension keeps track of your models giving them unique ids so you can easily use them in junction tables.
In the future I plan to improve this extension so it will be something like ContentTypes from Django framework., (*1)
Installation
Downloading yii2-contenttypes using composer
Add yii2-contenttypes to the require section of your composer.json file:, (*2)
{
"require": {
"stepanorda/yii2-contenttypes": "*"
}
}
Then run the command:, (*3)
$ php composer.phar update
Apply the migration:, (*4)
$ php yii migrate/up --migrationPath=@vendor/stepanorda/yii2-contenttypes/migrations
Usage
License
Apache License 2.0 http://www.apache.org/licenses/, (*5)