定制 rowe/yii2-region 二次开发

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

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

rowe/yii2-region

Composer 安装命令:

composer require rowe/yii2-region

包简介

Yii2中国省市区三级联动

README 文档

README

This is an Yii2 widget for Chinese region list field. (https://github.com/rowe/yii2-region)

Demo

image

Installation

Add to composer.json file with:

"rowe/yii2-region": "dev-master"

Configuration

Copy the @rowe/yii2-region/src/migrations/m170621_032947_region.php to the migration folder like console/migrations. Run

"Yii migrate"

The region codes would be inserted via Yii migration

Usage

Firstly, bind the behavior to your model which need to use the region fields.

public function behaviors()
{
    return [
        'RegionBehavior' => [
            'class' => RegionBehavior::className(),
        ]
    ];
}

And then, use the widget in the view.

<?= RegionWidget::widget(['model' => $model]);?>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2017-07-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固