open20 / amos-favorites
Favorites - plugin
Installs: 61
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:plugin
Requires
- php: >=5.4.0
- open20/amos-admin: >=1.8
- open20/amos-core: ~1.9
- open20/amos-notify: *
This package is auto-updated.
Last update: 2024-12-23 15:12:27 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 open20/amos-favorites
or add this row
"open20/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' => 'open20\amos\favorites\AmosFavorites', 'modelsEnabled' => [ /** * Add here the classnames of the models where you want the comments * (i.e. 'open20\amos\news\models\News') */ ] ], ],
3. Apply migrations
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', ];