Skip to content

Commit

Permalink
[3-15] 公演情報配列を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
hidenorigoto committed Oct 24, 2015
1 parent de4cf6e commit 9cce3fb
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
39 changes: 39 additions & 0 deletions docs/lists/ch03/03-15.txt
@@ -0,0 +1,39 @@
public function indexAction()
{
$concertList = [
[
'date' => '2015年5月3日',
'time' => '14:00',
'place' => '東京文化会館',
'available' => false,
],
[
'date' => '2015年7月12日',
'time' => '14:00',
'place' => '鎌倉芸術館',
'available' => true,
],
[
'date' => '2015年9月20日',
'time' => '15:00',
'place' => '横浜みなとみらいホール',
'available' => true,
],
[
'date' => '2015年11月8日',
'time' => '15:00',
'place' => 'よこすか芸術劇場',
'available' => false,
],
[
'date' => '2016年1月10日',
'time' => '14:00',
'place' => '渋谷公会堂',
'available' => true,
],
];

return $this->render('Concert/index.html.twig',
['concertList' => $concertList]
);
}
9 changes: 7 additions & 2 deletions src/AppBundle/Controller/ConcertController.php
Expand Up @@ -16,27 +16,32 @@ public function indexAction()
[
'date' => '2015年5月3日',
'time' => '14:00',
'place' => '東京文化会館 (満席)',
'place' => '東京文化会館',
'available' => false,
],
[
'date' => '2015年7月12日',
'time' => '14:00',
'place' => '鎌倉芸術館',
'available' => true,
],
[
'date' => '2015年9月20日',
'time' => '15:00',
'place' => '横浜みなとみらいホール',
'available' => true,
],
[
'date' => '2015年11月8日',
'time' => '15:00',
'place' => 'よこすか芸術劇場 (満席)',
'place' => 'よこすか芸術劇場',
'available' => false,
],
[
'date' => '2016年1月10日',
'time' => '14:00',
'place' => '渋谷公会堂',
'available' => true,
],
];

Expand Down

0 comments on commit 9cce3fb

Please sign in to comment.