定制 rahulabs/yii2-img-selector 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

rahulabs/yii2-img-selector

最新稳定版本:1.0.2

Composer 安装命令:

composer require rahulabs/yii2-img-selector

包简介

Yii2 widget ImgSelector

关键字:

README 文档

README

If you made a file manager in TinyMCE, you could connect Responsive File Manager (RFM). Then ask yourself: why can't I fill in inputs with the names of the file that is selected? So to say: "Doctor's photo" -> "Browse" -> "Save".

I made such a widget for myself. Basically, you need to download RFM, place it in a certain folder, in the backend/web/ folder and specify this path to it in backend/config/bootstrap.php.

Use: ->widget(\rahulabs\yii2\imgSelector\ImageSelector::className()) on the required field in the admin form.

Add Constant WEBSITE_URL in your project as domain URL: http://localhost

Install

composer require rahulabs/yii2-img-selector

frontend/config/bootstrap.php

Yii::$container->set('rahulabs\yii2\imgSelector\ImageSelector', [
    'fileManagerPathTpl' => '/adm-scripts/responsivefilemanager/filemanager/dialog.php?type=1&field_id=%s&relative_url=0&callback=ImageSelectorCallBack'
]);

backend/view/test/test.php

echo  $form
        ->field($model, 'main_image')
        ->widget(\rahulabs\yii2\imgSelector\ImageSelector::className()); 

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: CSS

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-08-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固