onmotion/yii2-gallery
最新稳定版本:1.2.2
Composer 安装命令:
composer require onmotion/yii2-gallery
包简介
blueimp gallery with fileupload in your Yii2 application
README 文档
README
blueimp gallery in your Yii2 application with fileupload
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist onmotion/yii2-gallery "*"
or add
"onmotion/yii2-gallery": "*"
to the require section of your composer.json file.
Usage
- You must add to your config:
'modules' => [
//...
'gallery' => [
'class' => 'onmotion\gallery\Module',
],
//...
]
- Apply migration, run:
php yii migrate --migrationPath=@vendor/onmotion/yii2-gallery/migrations
- Go to your application in your browser
http://your-host/gallery
If you want change the view, you can add to your config:
'components' => [
//...
'view' => [
'theme' => [
'pathMap' => [
'@vendor/onmotion/yii2-gallery/views/default' => '@app/views/gallery', // example: @app/views/gallery/default/index.php
],
],
],
//...
],
then you need to copy directory 'default' from @vendor/onmotion/yii2-gallery/views to @app/views/gallery and change it as you want.
More samples how it works you can see at blueimp gallery page
统计信息
- 总下载量: 3.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2016-04-06

