PHP code example of open20 / amos-discussioni

1. Go to this page and download the library: Download open20/amos-discussioni library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

open20 / amos-discussioni example snippets



'modules' => [
    'discussioni' => [
        'class' => 'open20\amos\discussioni\AmosDiscussioni'
    ],
],


return [
    '@vendor/open20/amos-discussioni/src/migrations',
];


'modules' => [
    'comments' => [
        'class' => 'open20\amos\comments\AmosComments',
        'modelsEnabled' => [
            'open20\amos\discussioni\models\DiscussioniTopic'
        ]
    ],
],
bash
php yii migrate/up --migrationPath=@vendor/open20/amos-discussioni/src/migrations