Moved the main site pages into folders for better project structure
This commit is contained in:
parent
1c9a802a3c
commit
b46551625d
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
$app->get('/about', function() use($app) {
|
$app->get('/about', function() use($app) {
|
||||||
|
|
||||||
$app->render('about.twig');
|
$app->render('pages/about.twig');
|
||||||
|
|
||||||
})->name('about');
|
})->name('about');
|
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
$app->get('/contact', function() use($app) {
|
$app->get('/contact', function() use($app) {
|
||||||
|
|
||||||
$app->render('contact.twig');
|
$app->render('pages/contact.twig');
|
||||||
|
|
||||||
})->name('contact');
|
})->name('contact');
|
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
$app->get('/home', function() use($app) {
|
$app->get('/home', function() use($app) {
|
||||||
|
|
||||||
$app->render('home.twig');
|
$app->render('pages/home.twig');
|
||||||
|
|
||||||
})->name('home');
|
})->name('home');
|
@ -6,7 +6,7 @@ $app->get('/music1', function() use($app) {
|
|||||||
$albums = $app->album->all()->sortByDesc('release_date')->values()->all();
|
$albums = $app->album->all()->sortByDesc('release_date')->values()->all();
|
||||||
$songs = $albums[0]->songs;
|
$songs = $albums[0]->songs;
|
||||||
|
|
||||||
$app->render('music1.twig', [
|
$app->render('pages/music1.twig', [
|
||||||
'albums' => $albums,
|
'albums' => $albums,
|
||||||
'songs' => $songs,
|
'songs' => $songs,
|
||||||
]);
|
]);
|
||||||
@ -19,7 +19,7 @@ $app->get('/music2', function() use($app) {
|
|||||||
$albums = $app->album->all()->sortByDesc('release_date')->values()->all();
|
$albums = $app->album->all()->sortByDesc('release_date')->values()->all();
|
||||||
$songs = $albums[0]->songs;
|
$songs = $albums[0]->songs;
|
||||||
|
|
||||||
$app->render('music2.twig', [
|
$app->render('pages/music2.twig', [
|
||||||
'albums' => $albums,
|
'albums' => $albums,
|
||||||
'songs' => $songs,
|
'songs' => $songs,
|
||||||
]);
|
]);
|
@ -10,7 +10,7 @@ $app->get('/shows', function() use($app) {
|
|||||||
$show->time = date('H:i', strtotime($show->datetime));
|
$show->time = date('H:i', strtotime($show->datetime));
|
||||||
}
|
}
|
||||||
|
|
||||||
$app->render('shows.twig', [
|
$app->render('pages/shows.twig', [
|
||||||
'shows' => $shows,
|
'shows' => $shows,
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user