amilna/yii2-iyo 问题修复 & 功能扩展

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

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

amilna/yii2-iyo

Composer 安装命令:

composer require amilna/yii2-iyo

包简介

Integration of Yii and OpenLayers

README 文档

README

Integration of Yii and OpenLayers

Require

gdal-bin, postgis, proj, libmapnik2, mapnik-utils, python-webpy, python-flup, python-openssl, nodejs (optional), php5-sqlite, php5-pgsql

Installation

The preferred way to install this extension is through composer.

Since this package do not have stable release on packagist, you should use these settings in your composer.json file :

"minimum-stability": "dev",
"prefer-stable": true,
"repositories":[
		
		{
			"type": "vcs",
			"url": "https://github.com/aaiyo/yii2-kcfinder"
		}	
   ]

After, either run

php composer.phar require --prefer-dist amilna/yii2-iyo "dev-master"

or add

"amilna/yii2-iyo": "dev-master"

to the require section of your composer.json file.

run migration for database

./yii migrate --migrationPath=@amilna/blog/migrations
./yii migrate --migrationPath=@amilna/iyo/migrations

add in modules section of main config

	'gridview' =>  [
		'class' => 'kartik\grid\Module',
	],
	'blog' => [
		'class' => 'amilna\blog\Module',
		/* 'userClass' => 'dektrium\user\models\User', // example if use another user class, default is 'common\models\User' */
	],
	'iyo' => [
        'class' => 'amilna\iyo\Module',
        /* 'userClass' => 'dektrium\user\models\User', // example if use another user class, default is 'common\models\User' */
        'geom_col'=>'the_geom'
        /* see vendor/amilna/yii2-iyo/Module.php for more options */ 
    ],

Set .htaccess

DirectoryIndex index.php

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php)

RewriteRule . index.php

Usage

Once the extension is installed, check the url: [your application base url]/index.php/iyo

To Do

  1. Create interactive layer & map settings

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-07-12