首页 > 其他 > 详细

zf2环境设置

时间:2015-10-20 21:04:21      阅读:269      评论:0      收藏:0      [点我收藏+]

一、关于环境

修改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 可以修改

zf2环境设置

原文:http://www.cnblogs.com/HuiLove/p/4895846.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!