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")); }
<?php /* * Define your routes and which views to display * depending of the query. * * Based on WordPress conditional tags from the WordPress Codex * http://codex.wordpress.org/Conditional_Tags * */ /*Layouts Data - Header */ View::share(array('logoUrl' => themosis_assets() . '/images/slhb-logo.png', 'logoMinUrl' => themosis_assets() . '/images/white_logo.png', 'logoFb' => themosis_assets() . '/images/logo-fb.png', 'logoGMap' => themosis_assets() . '/images/logo-gmap.png', 'footerImage' => themosis_assets() . '/images/image-footer-2015.png', 'defaultAvatar' => themosis_assets() . '/images/slhb-default-avatar.png', 'currentUser' => User::current(), 'headerMenu' => NavigationModel::getMenuItems("header-nav"), 'home_banner' => themosis_assets() . "/images/banner.jpg")); /*Page d'accueil */ Route::any('front', 'HomeController@index'); /* Page Toutes les équipes */ Route::get('postTypeArchive', ['slhb_team', 'uses' => 'TeamController@index']); /* Page de détails d'une équipes */ Route::get('singular', ['slhb_team', 'uses' => 'TeamController@getSingle']); /*Page de détails d'une actualité */ Route::get('singular', array('post', function () { return View::make('actualites.single'); })); /* Page Calendrier */ Route::get('template', array('calendar-template', 'uses' => 'AgendaController@index')); /* Page Infos pratiques */ Route::get('template', array('infos-pratiques-template', 'uses' => 'InfosPratiquesController@index')); /* Page Médiathèque */ /* Page Contacts */ /* Page Boutique */ /* Page Profil */ /*Page par défaut*/