maerduq/usm-albums 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

maerduq/usm-albums

Composer 安装命令:

composer require maerduq/usm-albums

包简介

A plugin for USM to manage and display photo's using albums.

README 文档

README

A plugin for USM to manage and display photo's using albums.

Prerequisites

Getting started

  • Download in your project by executing $ composer require maerduq/usm-albums.
  • Add the plugin as a module to config/web.php.
      'modules' => [
          ...
          'albums' => [
              'class' => 'maerduq\usmAlbums\AlbumsModule',
              (here some optional plugin configuration, see below for options)
          ],
          ...
      ],
      ...
    
  • Add the albums module as USM plugin in config/web.php.
      'modules' => [
          'usm' => [
              ...
              'plugins' => [
                  'albums',
                  ...
              ],
          ],
          ...
      ],
      ...
    
  • Add the migration path to migrate-usm in config/console.php.
      ...
      'controllerMap' => [
          'migrate-usm' => [
              'migrationPath' => ['@usm/migrations', '@vendor/maerduq/usm-albums/src/migrations'],
              ...
          ]
      ],
      ...
    
  • Run the migrations with $ php yii migrate-usm.
  • Create the folder @app/files/albums and make it writable, or configure a different folder to store your image files.
  • Increase post_max_size and upload_max_filesize in your PHP configuration if needed.

Hooks

  • Controller to add to your menu: /albums/default/index.
  • Textblocks: photos/no-photos-message.

Plugin configuration

  • imageDirectory - path to where the image files of the albums should be stored.
  • overviewViewFile - view file for the overview view.
  • albumViewFile - view file for the album view.

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-08-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固