maks757/common-library

此包的最新版本(0.0.001)没有提供许可证信息。

安装: 1

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

类型:yii2-extension

0.0.001 2017-02-13 21:18 UTC

This package is not auto-updated.

Last update: 2024-09-28 20:03:48 UTC


README

composer require maks757/common-library

前端配置

'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'
            ]
        ],
        //...
]

后端配置

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