zoukankan      html  css  js  c++  java
  • zf2环境设置

    一、关于环境

    修改apache目录下的httpd.conf

    1.SetEnv ZF2_PATH “d:/myphp/www/zf2library”

    2.修改 AllowOverride none 为AllowOverride All

    二、有关文件描述

        module.config.php文件中定义了模块中可以访问的各类路径信息定义:

            'router' :路由定义,确定哪些action能被执行

            'service_manager': 确定模块需要加载哪些服务

                'factories':

        

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

  • 相关阅读:
    jquery $.ajax $.get $.post的区别
    浅析JQuery中的html(),text(),val()区别
    单词统计续
    第一阶段意见评论
    学习进度9
    第一阶段SCRUM冲刺10
    第一阶段SCRUM冲刺09
    单词统计
    第一阶段SCRUM冲刺08
    学习进度8
  • 原文地址:https://www.cnblogs.com/HuiLove/p/4895846.html
Copyright © 2011-2022 走看看