Changed views from .php extension to .twig

This commit is contained in:
gballan1 2016-04-20 21:06:02 -04:00
parent d79535a09b
commit cdd075f186
10 changed files with 19 additions and 19 deletions

View File

@ -1,7 +1,7 @@
<?php
$app->get('/about', function() use($app) {
$app->render('about.php');
$app->render('about.twig');
})->name('about');

View File

@ -1,7 +1,7 @@
<?php
$app->get('/contact', function() use($app) {
$app->render('contact.php');
$app->render('contact.twig');
})->name('contact');

View File

@ -1,7 +1,7 @@
<?php
$app->get('/home', function() use($app) {
$app->render('home.php');
$app->render('home.twig');
})->name('home');

View File

@ -1,7 +1,7 @@
<?php
$app->get('/music', function() use($app) {
$app->render('music.php');
$app->render('music.twig');
})->name('music');

View File

@ -1,25 +1,25 @@
<?php
$app->get('/shows', function() use($app) {
$shows = json_decode(file_get_contents('http://api.bandsintown.com/artists/HALFtone/events.json?api_version=2.0&app_id=shows_halftoneband.com'));
foreach ($shows as $show) {
$show->date = date('M dS', strtotime($show->datetime));
$show->day = date('D', strtotime($show->datetime));
$show->time = date('H:i', strtotime($show->datetime));
}
$app->render('shows.php', [
$app->render('shows.twig', [
'shows' => $shows,
]);
})->name('shows');
$app->get('/shows/json', function() use($app) {
$shows = json_decode(file_get_contents('http://api.bandsintown.com/artists/HALFtone/events.json?api_version=2.0&app_id=shows_halftoneband.com'));
foreach ($shows as $show) {
$show->date = date('M dS', strtotime($show->datetime));
$show->day = date('D', strtotime($show->datetime));