【发布时间】:2017-04-20 08:10:06
【问题描述】:
我正在使用 ZF3,我需要更改错误页面的布局。它们在Applicationmodules.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 页面设置特定布局?
【问题讨论】:
标签: php layout zend-framework zend-framework3 zf3