From cdd075f1865be1cbb4ec5f80047133469264d0c0 Mon Sep 17 00:00:00 2001 From: gballan1 Date: Wed, 20 Apr 2016 21:06:02 -0400 Subject: [PATCH] Changed views from .php extension to .twig --- app/routes/about.php | 6 +++--- app/routes/contact.php | 6 +++--- app/routes/home.php | 6 +++--- app/routes/music.php | 6 +++--- app/routes/shows.php | 14 +++++++------- app/views/{about.php => about.twig} | 0 app/views/{contact.php => contact.twig} | 0 app/views/{home.php => home.twig} | 0 app/views/{music.php => music.twig} | 0 app/views/{shows.php => shows.twig} | 0 10 files changed, 19 insertions(+), 19 deletions(-) rename app/views/{about.php => about.twig} (100%) rename app/views/{contact.php => contact.twig} (100%) rename app/views/{home.php => home.twig} (100%) rename app/views/{music.php => music.twig} (100%) rename app/views/{shows.php => shows.twig} (100%) 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