我在win7机器上使用ZendServer-CE-php-5.3.14-5.6.0-SP4-Windows_x86(zend server + zend framework1)。
我使用ZendStudio.exe创建项目zf-tutorial1,
使用以下zf命令创建3个操作:
zf create action add Index
zf create action edit Index
zf create action delete Index
我查看了D:\program files (x86)\Zend\Apache2\conf\httpd.conf
一个。 LoadModule rewrite_module modules/mod_rewrite.so
(默认情况下已启用)
湾将AllowOverride None
更改为AllowOverride All
,共有3个位置。
然后,我打开以下网址:
http://localhost/zf-tutorial1/public/
...效果很好,显示“欢迎来到zend框架......”
http://localhost/zf-tutorial1/public/add
...显示“找不到页面错误”
那么问题是什么?很奇怪,昨天它运作良好,但今天当我打开电脑时,它显示“找不到页面”,太奇怪了。
答案 0 :(得分:0)
找出原因:我输入了错误的网址,正确的是:http://localhost/zf-tutorial/public/index/add