diff --git a/docs/lists/ch03/03-10.txt b/docs/lists/ch03/03-10.txt new file mode 100644 index 0000000..42a4b1f --- /dev/null +++ b/docs/lists/ch03/03-10.txt @@ -0,0 +1,8 @@ +public function indexAction() +{ + $information = "5月と6月の公演情報を追加しました。"; + + return $this->render('Toppage/index.html.twig', + ['information' => $information] + ); +} diff --git a/src/AppBundle/Controller/ToppageController.php b/src/AppBundle/Controller/ToppageController.php index f448994..8cd2762 100644 --- a/src/AppBundle/Controller/ToppageController.php +++ b/src/AppBundle/Controller/ToppageController.php @@ -12,6 +12,10 @@ class ToppageController extends Controller */ public function indexAction() { - return $this->render('Toppage/index.html.twig'); + $information = "5月と6月の公演情報を追加しました。"; + + return $this->render('Toppage/index.html.twig', + ['information' => $information] + ); } }