maks757/common-library

There is no license information available for the latest version (0.0.001) of this package.

Library

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

0.0.001 2017-02-13 21:18 UTC

This package is not auto-updated.

Last update: 2024-04-27 17:53:35 UTC


README

composer require maks757/common-library

config frontend

'components' => [
        'library' => [
            'class' => \common\modules\library\LibraryComponent::className(),
            //default alias @frontend/web + array items
            'dirs' => [
                '/images',
                '/textEditor',
                '/info',
                '/pdf',
                '/video',
                '/Musik',
            ],
            //search type files
            'file_type' => [
                '.gif', 
                '.png', 
                '.jpg', 
                '.jpeg', 
                '.svg', 
                '.pdf', 
                '.mp4', 
                '.webm', 
                '.mp3', 
                '.ogg', 
                '.wav'
            ]
        ],
        //...
]

config backend

'modules' => [
        'lib' => [
            'class' => \common\modules\library\LibraryModule::className()
        ],
        //...
],