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/SiteController.php(12): YiiBase::autoload()
07 
08         $this->pageTitle = 'Startseite - ' . Yii::app()->name;
09 
10         
11         
12         $dayNumberLeagueOne = Matchday::model()->findAllByAttributes(array('leagueID' => 7), array('order' => 'dayNumber DESC'));
13         $dayNumberLeagueTwo = Matchday::model()->findAllByAttributes(array('leagueID' => 8), array('order' => 'dayNumber DESC'));
14 
15         $lastMatchdayLeagueOne = Matchday::model()->findAllByAttributes(array('dayNumber' => $dayNumberLeagueOne[0]['dayNumber'], 'seasonID' => 5, 'leagueID' => 9), array('order' => 'date DESC'));
16         $lastMatchdayLeagueTwo = Matchday::model()->findAllByAttributes(array('dayNumber' => $dayNumberLeagueTwo[0]['dayNumber'], 'seasonID' => 5, 'leagueID' => 10), array('order' => 'date DESC'));
17 
#8
+
 /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-29 12:05:54 Apache Yii Framework/1.1.14