Yii Framework Forum: Google Weather - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Google Weather Google Weather Rate Topic: -----

#1 User is offline   Deepak Pradhan 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 209
  • Joined: 01-May 09
  • Location:Charlotte, NC

Posted 10 October 2009 - 02:22 PM

Yii widget to get weather data from Google's Weather API.
Post bugs and feature request
0

#2 User is offline   Darkfly 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 24
  • Joined: 04-September 09

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
0

#3 User is offline   RJG 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 28-May 10

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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users