Download the PHP package yii-diandi/yii2-region without Composer
On this page you can find all versions of the php package yii-diandi/yii2-region. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii2-region
yii2-region
Yii2 中国省市区三级联动(https://github.com/diandi/yii2-region)
安装
添加到你的composer.json文件
配置
1、在地区的Model中添加以下方法
2、在controller中添加以下action
3、启用urlManager的enablePrettyUrl的,即隐藏index.php
使用
province为省份配置,可用的选项可以查看Html::dropdownList。如果不需要县/区,可以把district删除。
All versions of yii2-region with dependencies
PHP Build Version
Package Version
Requires
yiisoft/yii2 Version
*
The package yii-diandi/yii2-region contains the following files
Loading the files please wait ....