frenzelgmbh/cm-address 问题修复 & 功能扩展

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

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

frenzelgmbh/cm-address

Composer 安装命令:

composer require frenzelgmbh/cm-address

包简介

Common Address Module for yii2

README 文档

README

common module :: Address Management Module (Frenzel GmbH 2017) v.1.0.4

Allows you to add addresses to a model by your choice. You can define wheater it's a main address or not.

@author philipp@frenzel.net Philipp Frenzel

Installation

Add the following line to your composer.json require section:

"frenzelgmbh/cm-address":"*",
php yii migrate --migrationPath=@vendor/frenzelgmbh/cm-address/migrations

Inside your yii-config, pls. add the following lines to your modules section. As you might see, the gridview needs to be implemented too.

'address'=>[
  'class' => 'net\frenzel\address\Module',
  'userIdentityClass' => 'app\models\User', //points to your user identity class
],

Design

The Address module is use to store address/location informations, that can be linked to any other "module". So in general all modules are referenced by:

  • entity (which should hold the table name VARCHAR(100))
  • entity_id (which should hold the primarey key of the referenced record INTEGER(11))

Works by passing over the model to the widget!

Geolocation

The module tries to enrich each passed over address with the latitude and longitude, which will be looked up by combining street, address and state information.

Widgets

Address Management Widget:

<?= \net\frenzel\address\views\widgets\Addresses::widget(['model'=> $model]) ?>

Renders a Map with all related address points related to the model:

<?= \net\frenzel\address\views\widgets\MapWidget::widget(['model'=> $model]) ?>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-05-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固