摘要:
一重点数据库 public function getPmByName($city) { if($info = Yii::app()->cache->get("$city")){ return $info; } $sql = "select city_info from pm25 where city_name = '{$city}' limit 1"; //这样写目的是为了下面依赖 $cmd = Yii::app()->db->createCommand($sql)->queryScalar(); if($c 阅读全文
摘要:
相关链接:http://www.iteye.com/news/12109-highcharts-charting-apihttp://www.dotblogs.com.tw/lastsecret/archive/2011/01/30/21137.aspx 阅读全文