我有一个zend教程zip,但是当我运行它时,我收到两个警告,列在下面
Warning: include(/var/www/html/zendapp/module/Admin/config/../view/layout/layout.phtml): failed to open stream: No such file or directory in /var/www/html/zendapp/vendor/zendframework/zendframework/library/Zend/View/Renderer/PhpRenderer.php on line 506
Warning: include(): Failed opening '/var/www/html/zendapp/module/Admin/config/../view/layout/layout.phtml' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/zendapp/vendor/zendframework/zendframework/library/Zend/View/Renderer/PhpRenderer.php on line 506
请帮帮我,我试过谷歌,但仍无法找到任何解决方案。
我在Admin/config/module/module.config.php
中获得了' template_map'有
'view_manager' => array(
'display_not_found_reason' => true,
'display_exceptions' => true,
'doctype' => 'HTML5',
'not_found_template' => 'error/404',
'exception_template' => 'error/index',
'template_map' => array(
'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' => array(
'admin' => __DIR__ . '/../view'
),
),
并且layout.phtml的位置为var/www/html/zendapp/module/Application/view/layout/layout.phtml