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/TeamController.php(9): YiiBase::autoload()
04 {
05     public function actionDetails($teamID)
06     {
07         $model = Team::model()->findByPk($teamID);
08         $this->pageTitle = 'Die ' . $model->name . ' im Detail - ' . Yii::app()->name;
09         $matchdays = Matchday::model()->findAll('teamHomeID=' . $teamID . ' OR teamAwayID = ' . $teamID . ' ORDER BY dayNumber DESC');
10         $this->render('details', array('team' => $model, 'matchdays' => $matchdays));
11     }
12 
13 }
#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 12:38:11 Apache Yii Framework/1.1.14