chinaweatherforecast A widget that display china's 320 cities weather forecast of 4 days

  1. Requirements
  2. Usage
  3. Resources

This widget get it's data from http://www.weather.com.cn, and can both assign a city or auto detect city by client's ip address (base on QQWry.Dat, the download url will be listed after). It support china's 320 cities weather forecast of 4 days.

Requirements

It's better that your php support curl extension. It must download data from remote server. AND the extension mb_string is REQUIRED.

Usage

Extract the files to exact directory the same in the zip file. and the directory "protected/data/" must be writtenable. And put the QQWry.Dat in this directory.

and then in your view file:

$this->widget('ext.weather.WeatherWidget');

Resources

1 0
1 follower
330 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Others
Tags: weather
Developed by: wangyong
Created on: Aug 26, 2011
Last updated: 6 years ago

Downloads

show all

Related Extensions