ZF3 を使用していますが、エラー ページのレイアウトを変更する必要があります。これらは、アプリケーションmodules.config
ファイルの次の構成によって呼び出されます。
'view_manager' => [
'display_not_found_reason' => true,
'display_exceptions' => true,
'doctype' => 'HTML5',
'not_found_template' => 'error/404',
'exception_template' => 'error/index',
'template_map' => [
'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
'application/index/index' => __DIR__ . '/../view/application/index/index.phtml',
'error/404' => __DIR__ . '/../view/error/404.phtml',
'error/index' => __DIR__ . '/../view/error/index.phtml',
],
'template_path_stack' => [
__DIR__ . '/../view',
],
],
404.phtml
とindex.phtml
ページの特定のレイアウトを設定するにはどうすればよいですか?