We are going to deploy the new yiiframework.com website on March 23, 2018 from 8:00 to 12:00 UTC.
Website and Yii documentation will not be available in this time frame. Check the news for more details.

Yii 1.1: chinaweatherforecast

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

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.


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


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:



Be the first person to leave a comment

Please to leave your comment.

Create extension
  • Yii Version: 1.1
  • License: New BSD License
  • Developed by: wangyong
  • Category: Others
  • Votes: +1
  • Downloaded: 330 times
  • Created on: Aug 25, 2011
  • Last updated: Aug 25, 2011
  • Tags: weather