Yii widget to get weather data from Google's Weather API.
Post bugs and feature request
Page 1 of 1
Google Weather Google Weather
#2
Posted 13 October 2009 - 07:48 PM
after installing i have the error:
Use of undefined constant DS - assumed 'DS'
........\WeatherForecast.php(146)
00134: */
00135: private $forecastProviders;
00136:
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
Use of undefined constant DS - assumed 'DS'
........\WeatherForecast.php(146)
00134: */
00135: private $forecastProviders;
00136:
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
#3
Posted 03 June 2010 - 06:13 PM
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.
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.
Share this topic:
Page 1 of 1

Help












