arter / amos-favorites
There is no license information available for the latest version (1.0.1) of this package.
Favorites - plugin
This package's canonical repository appears to be gone and the package has been frozen as a result.
1.0.1
2022-05-04 16:01 UTC
Requires
- php: >=5.4.0
- arter/amos-admin: >=1.8
- arter/amos-core: ~1.9
- arter/amos-notify: *
This package is auto-updated.
Last update: 2024-06-16 19:38:19 UTC
README
Extension for add a content, like news, events, etc..., in the favorites.
Installation
1. Add module to your application
The preferred way to install this extension is through composer.
Either run
composer require arter/amos-favorites
or add this row
"arter/amos-favorites": "dev-master"
to the require section of your composer.json
file.
2. Add module configuration
Add module to your main config in backend like this:
<?php
'modules' => [
'favorites' => [
'class' => 'arter\amos\favorites\AmosFavorites',
'modelsEnabled' => [
/**
* Add here the classnames of the models where you want the comments
* (i.e. 'arter\amos\news\models\News')
*/
]
],
],
3. Apply migrations
To apply migrations you can launch this command:
php yii migrate/up --migrationPath=@vendor/arter/amos-favorites/src/migrations
or add this row to your migrations config in console:
<?php
return [
'@vendor/arter/amos-favorites/src/migrations',
];