Extension for add a content, like news, events, etc..., in the favorites.
The preferred way to install this extension is through composer.
Either run
composer require open20/amos-favorites
or add this row
"open20/amos-favorites": "dev-master"
to the require section of your composer.json
file.
Add module to your main config in backend like this:
<?php
'modules' => [
'favorites' => [
'class' => 'open20\amos\favorites\AmosFavorites',
'modelsEnabled' => [
/**
* Add here the classnames of the models where you want the comments
* (i.e. 'open20\amos\news\models\News')
*/
]
],
],
To apply migrations you can launch this command:
php yii migrate/up --migrationPath=@vendor/open20/amos-favorites/src/migrations
or add this row to your migrations config in console:
<?php
return [
'@vendor/open20/amos-favorites/src/migrations',
];