zf2环境设置
2015-10-20 19:18
363 查看
一、关于环境
修改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:各类视图模板文件定义,系统默认layout.phtml 可以修改
修改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 可以修改
相关文章推荐
- JAVA各种引用(Reference)的汇总
- iOS 响应者链Responder Chain浅析
- WebAPI POST总是Nothing或null
- 事件冲突总结
- iOS中生成随机数
- Xml中SelectSingleNode方法中的xpath用法
- hdu1754(splay)
- 机器学习算法之:决策树 (decision trees)
- iOS开发1-使用NSJSONSerialization解析JSON数据
- android倒计时
- 第七周 负数把正数赶出队列
- 【大数据】2015 Bossie评选-20个最佳开源大数据技术
- Android5.0 源码研究---进程间通信 Linux内核源码部分解析
- java内部类
- 冒泡排序
- 单机和集群环境下的FP-Growth算法java实现(关联规则挖掘)
- 计步器
- BZOJ 1567: [JSOI2008]Blue Mary的战役地图( 二分答案 + hash )
- linux问题-easy_install安装bpython时报错
- 【大数据】2015 Bossie评选-20个最佳开源大数据技术