PHP code example of open20 / amos-report

1. Go to this page and download the library: Download open20/amos-report 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-report example snippets


    
    'modules' => [
        'comments' => [
            'class' => 'open20\amos\report\AmosReport',
            'modelsEnabled' => [
                /**
                 * Add here the classnames of the models for whose you want to enable reports
                 * (i.e. 'open20\amos\news\models\News')
                 */
            ]
        ],
    ],
    

    'workflow' => [
        'class' => 'cornernote\workflow\manager\Module',
    ],
    

    'workflow-manager' => [
        'class' => 'cornernote\workflow\manager\Module',
    ],
    

   'workflow' => [
       'class' => 'open20\amos\workflow\AmosWorkflow',
   ],
   

    'bootstrap' => [
        .
        .
        .
        'workflow',
        .
        .
        .
    ],
    

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

    return [
        .
        .
        .
        '@vendor/open20/amos-workflow/src/migrations',
        .
        .
        .
    ];
    
bash
    php yii migrate/up --migrationPath=@vendor/open20/amos-report/src/migrations
    
bash
    php yii migrate/up --migrationPath=@vendor/open20/amos-workflow/src/migrations