08:43:09 ERROR: the control file module/hello/control.php not found. in framework/base/router.class.php on line 1198, last called by framework/base/router.class.php on line 1589 through function setControlFile.
in framework/base/router.class.php on line 2194 when visiting /?m=hello&f=world
in framework/base/router.class.php on line 2194 when visiting /?m=hello&f=world
这个居然跟文件类型有关, 用phpstorm建的php类文件就报这个错, 而建普通php文件则正常
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase / #这里加上
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*)$ index.php/$1 [R,L] #这里[R,L]
</IfModule>
原因:支持url重写功能需要在\zentaophp\下加入二个文件:".ztaccess"和".htaccess"
方法:
1.下载禅道项目管理软件Windows一键安装包:http://dl.cnezsoft.com/zentao/9.1/ZenTaoPMS.9.1.stable.exe
2.安装ZenTaoPMS.9.1.stable.exe
3.拷贝\xampp\zentao\www\路径下的".ztaccess"和".htaccess"到\zentaophp\
4.打开“.ztaccess”
5.修改“/zentao/index.php/$1”成“/zentaophp/index.php/$1”
6.用浏览器访问:http://localhost/zentaophp/hello-world,就可以看到hellworld了