ParseError

syntax error, unexpected token "::", expecting "("

/homepages/7/d527667691/htdocs/steeldart/protected/models/Matchday.php(48)

36     {
37         $return = array();
38         $points = 0;
39         $gamesWon = 0;
40         $gamesLost = 0;
41         $setsWon = 0;
42         $setsLost = 0;
43         $matchdays = $this->findAll();
44         foreach ($matchdays as $matchday) {
45             if ($teamID == $matchday->teamHomeID || $teamID == $matchday->teamAwayID) {
46                 $pointsHome = 0;
47                 $pointsAway = 0;
48                 $matches = Match::model()->findAll('matchdayID = ' . $matchday->id);
49                 if (count($matches) > 0) {
50                     foreach ($matches as $match) {
51                         if ($teamID == $matchday->teamHomeID) {
52                             $setsWon = $setsWon + $match->home;
53                             $setsLost = $setsLost + $match->away;
54                             if ($match->home > $match->away) {
55                                 $gamesWon++;
56                                 $pointsHome++;
57                             } else {
58                                 $gamesLost++;
59                                 $pointsAway++;
60                             }

Stack Trace

#0
+
 /homepages/7/d527667691/htdocs/steeldart/protected/controllers/CalendarController.php(25): YiiBase::autoload()
20 
21         $calendar->addDailyHtml('Ligaabschlussfeier im Bowling Center Bode', '2014-08-16', '2014-08-16');
22         $calendar->addDailyHtml('TC Versammlung in der Bürgerschänke', '2014-09-03', '2014-09-03');
23         $calendar->addDailyHtml('TC Versammlung im Scotty´s', '2014-06-25', '2014-06-25');
24 
25         $matchdays = Matchday::model()->findAll();
26         foreach ($matchdays as $matchday) {
27             $calendar->addDailyHtml($matchday->home->name . ' vs. ' . $matchday->away->name, $matchday->date, $matchday->date);
28 
29         }
30         $cal = $calendar->show(false);
#10
+
 /homepages/7/d527667691/htdocs/steeldart/index.php(9): CApplication->run()
4 setlocale(LC_TIME, "de_DE");
5 setlocale(LC_ALL, 'de_DE');
6 defined('YII_DEBUG') or define('YII_DEBUG', true);
7 $config = dirname(__FILE__) . '/protected/config/main.php';
8 require_once(dirname(__FILE__) . '/framework/yii.php');
9 Yii::createWebApplication($config)->run();
2024-03-28 22:48:52 Apache Yii Framework/1.1.14