Esempio n. 1
0
 /**
  * Return only the last match played, with additional informations (teams and scores included)
  *
  * @return Match Object
  */
 public static function getNextMatch()
 {
     $matchs = MatchModel::getNextMatchs(1);
     if (count($matchs) == 1) {
         $match = $matchs[0];
         $matchId = $match->ID;
         $match->match_date = Meta::get($matchId, 'match_date');
         $match->match_team_dom = Meta::get($matchId, 'match_team_dom');
         $match->match_team_ext = Meta::get($matchId, 'match_team_ext');
         return $match;
     }
 }
Esempio n. 2
0
 public function index()
 {
     return View::make('home.home-content')->with(array('actus' => PostModel::all(), 'last_match' => MatchModel::getLastResult(10), 'next_match' => MatchModel::getNextMatchs(2), 'home_banner' => themosis_assets() . "/images/banner.jpg"));
 }