APACHE环境是AMPServ5.2.6的集成环境
目前使用的是ZendFramwork1.10
1、建一个test.com的虚拟目录
2、打开/APMServ5.2.6/Apache/conf/apmserv/vhost.conf,把test.com的 AllowOverride 设为All
3、在test.com的根目录配置.htaccess文件如下
RewriteEngine on
RewriteRule .* index.php
php_flag magic_quotes_gpc off
php_flag register_globals off
4、建立如下的子目录,这些目录将存放程序所需要的文件:
test.com/
/application
/controllers
/models
/views
/filters
/helpers
/scripts
/library
/public
/images
/scripts
/styles
5、根目录的index.php如下
6、application/controllers/IndexController.php代码如下
7、/application/views/scripts/Index建一个index.phtml
8、IE中打开test.com就可以看到上面的代码了。

本文介绍如何在APMServ5.2.6环境下搭建ZendFramework1.10的开发环境,包括配置虚拟主机、设置.htaccess文件、创建项目目录结构及核心文件等步骤。


被折叠的 条评论
为什么被折叠?



