标签:
一、关于环境
修改apache目录下的httpd.conf
1.SetEnv ZF2_PATH “d:/myphp/www/zf2library”
2.修改 AllowOverride none 为AllowOverride All
二、有关文件描述
layout.phtml 文件在module/application/config/module.config.php中定义
‘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( __DIR__ . ‘/../view‘, ), ),
view_manager:各类视图模板文件定义,系统默认layout.phtml 可以修改
标签:
原文地址:http://www.cnblogs.com/HuiLove/p/4895846.html