码迷,mamicode.com
首页 > 其他好文 > 详细

zf2环境设置

时间:2015-10-20 21:06:11      阅读:172      评论: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)
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!