diff --git a/app/routes/about.php b/app/routes/about.php index b668e36..5857481 100755 --- a/app/routes/about.php +++ b/app/routes/about.php @@ -1,7 +1,7 @@ get('/about', function() use($app) { - - $app->render('about.php'); + + $app->render('about.twig'); })->name('about'); diff --git a/app/routes/contact.php b/app/routes/contact.php index 3de3c8a..e125bd9 100755 --- a/app/routes/contact.php +++ b/app/routes/contact.php @@ -1,7 +1,7 @@ get('/contact', function() use($app) { - - $app->render('contact.php'); + + $app->render('contact.twig'); })->name('contact'); diff --git a/app/routes/home.php b/app/routes/home.php index cae12e1..be6b6c8 100755 --- a/app/routes/home.php +++ b/app/routes/home.php @@ -1,7 +1,7 @@ get('/home', function() use($app) { - - $app->render('home.php'); + + $app->render('home.twig'); })->name('home'); diff --git a/app/routes/music.php b/app/routes/music.php index 1b57352..a285110 100755 --- a/app/routes/music.php +++ b/app/routes/music.php @@ -1,7 +1,7 @@ get('/music', function() use($app) { - - $app->render('music.php'); + + $app->render('music.twig'); })->name('music'); diff --git a/app/routes/shows.php b/app/routes/shows.php index f3931af..df150e7 100755 --- a/app/routes/shows.php +++ b/app/routes/shows.php @@ -1,25 +1,25 @@ 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)); diff --git a/app/views/about.php b/app/views/about.twig similarity index 100% rename from app/views/about.php rename to app/views/about.twig diff --git a/app/views/contact.php b/app/views/contact.twig similarity index 100% rename from app/views/contact.php rename to app/views/contact.twig diff --git a/app/views/home.php b/app/views/home.twig similarity index 100% rename from app/views/home.php rename to app/views/home.twig diff --git a/app/views/music.php b/app/views/music.twig similarity index 100% rename from app/views/music.php rename to app/views/music.twig diff --git a/app/views/shows.php b/app/views/shows.twig similarity index 100% rename from app/views/shows.php rename to app/views/shows.twig