Skip to content

regionelombardia-open20/open2-favorites

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

amos-favorites

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',
];

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages