/** * トップページ * * @Template("AppWebFrontBundle:Index:index.html.twig") */ public function indexAction() { $result = parent::run(); return $result; }
/** * その他のページ共通 */ public function indexAction($template, $http_status = null) { $result = parent::run(); $response = !is_null($http_status) ? new Response('', $http_status) : null; return $this->render($template, $result, $response); }