Skip to content

Commit

Permalink
[3-10] アクションに新着情報データを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
hidenorigoto committed Oct 24, 2015
1 parent 10c6f50 commit 31c2359
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions 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]
);
}
6 changes: 5 additions & 1 deletion src/AppBundle/Controller/ToppageController.php
Expand Up @@ -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]
);
}
}

0 comments on commit 31c2359

Please sign in to comment.