Google Weather

Yii widget to get weather data from Google’s Weather API.

Post bugs and feature request

after installing i have the error:

Use of undefined constant DS - assumed ‘DS’


00134: */

00135: private $forecastProviders;


00137: /**

00138: * Initialises the widget

00139: *

00140: * Registers the CSS file and sets the required forecast provider,

00141: * loading it if required

00142: */

00143: public function init() {

00144: if ($this->cssFile !== false) {

00145: if ($this->cssFile === null) {

00146: $file = dirname(FILE) . DS . ‘assets’ . DS . ‘weather_forecast.css’;

The DS can be set to ‘/’ or something?

I try changing DS to DIRECTORY_SEPARATOR, and after i have other error:

Call to a member function get() on a non-object in C:…\WeatherForecast.php on line 169

Hey Pradhan, very good!

But seems to want to just echo out the google_weather.php file

followed directions but can’t get it to work

looking at the source of the view I see the php file of the above.

Any help would be appreciated.