1.安装好zend studio
2.下载WampServer,点击下一步就可以了,我的安装目录事d:/wamp
3.下载zend framwork,将它的library解压到d:/wamp下
4.点击右下角托盘WampServer,配置Apache的http.conf,首先将LoadModule rewrite_module modules/mod_rewrite.so前面的#去掉,如果换工程目录,则可以把DocumentRoot 改为你的工程目录,还有要把下面的一个Directory改成一样
5.配置php.ini:同样在托盘里点击php.ini,找到; Windows: "/path1;/path2" ;include_path = ".;c:/php/includes;",把;include_path = ".;c:/php/includes;"前面";"去掉,加上php的library,配置完成后即为
include_path = ".;c:/php/includes;d:/wamp/library;"
6.进入工程目录,新建一个zend framwork,取名test,就可以在浏览器上地址栏输入http://localhost/test就可以得到结果是输出三个目录application/,html/,library/。如果自己写了php页面,在后面加上就可以了。
其中要注意的事,php library配置事,路径都写小写或者大写,如果是D:/wamp/library,就会报
Warning: require_once(Zend/Controller/Front.php) [function.require-once]: failed to
open stream: No such file or directory in ......
Fatal error: require_once() [function.require]: Failed opening required
'Zend/Controller/Front.php' (include_path='.;C:/php5/pear') in ......
下面给出上面链接的图片: