ParseError

syntax error, unexpected token "match"

/homepages/7/d527667691/htdocs/steeldart/protected/controllers/MatchController.php(8)

01 <?php
02 
03 class MatchController extends CController
04 {
05     public function actionIndex($matchDayID)
06     {
07         $param = array();
08         $model = new Match();
09         $matches = $model->with('matchday')->findAllByAttributes(array('matchdayID' => $matchDayID));
10 
11         $this->pageTitle = 'Match: ' . $matches[0]->matchday->home->name . ' vs. ' . $matches[0]->matchday->away->name . ' - ' . Yii::app()->name;
12 
13         if ($matches) {
14             $homePoints = 0;
15             $awayPoints = 0;
16             foreach ($matches as $match) {
17                 if ($match['home'] > $match['away'])
18                     $homePoints++;
19                 else
20                     $awayPoints++;

Stack Trace

#3
+
 /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 23:24:45 Apache Yii Framework/1.1.14