zf 项目创建

1       准备工作

PHP>=5.2以上,Apache开启mod_rewrite支持,开启php的pdo扩展。

下载ZendFramework-1.11.6

 

添加php的可执行路径到系统变量path中:

D:\php\php

 

创建项目:

 

 

2       配置虚拟目录

在生成的项目里docs文件夹下已经创建好配置文件:拷贝到你的虚拟文件中。

 

The following is a sample VHOST you might want to consider for your project.

 

<VirtualHost *:80>

   DocumentRoot "E:/zf/www/demo/public"

   ServerName .local

 

   # This should be omitted in the production environment

   SetEnv APPLICATION_ENV development

 

   <Directory "E:/zf/www/demo/public">

       Options Indexes MultiViews FollowSymLinks

       AllowOverride All

       Order allow,deny

       Allow from all

   </Directory>

 

</VirtualHost>

文件下添加:127.0.0.1 zf.demo

 

运行如下命令:

 

重启apache

 

拷贝Zend到library目录下:

在浏览器里运行:zf.demo

 

 

项目搭建完毕。

 

posted @ 2012-06-09 13:09  haiwei.sun  阅读(243)  评论(0编辑  收藏  举报
返回顶部