CakePHP调试错误找不到Webroot

CakePHP调试错误找不到Webroot,php,cakephp,Php,Cakephp,我正在使用Zend Studio在Windows 2008 R2虚拟机上本地调试CakePHP应用程序。当我告诉Zend调试index.php时,我收到以下错误: Warning: require(webroot\index.php): failed to open stream: No such file or directory in **my directory name** Fatal error: require(): Failed opening required 'webroot

我正在使用Zend Studio在Windows 2008 R2虚拟机上本地调试CakePHP应用程序。当我告诉Zend调试index.php时,我收到以下错误:

Warning: require(webroot\index.php): failed to open stream: No such file or directory in **my directory name**

Fatal error: require(): Failed opening required 'webroot\index.php' 
为了简洁起见,我的目录名被省略了

php包含

require 'webroot' . DIRECTORY_SEPARATOR . 'index.php';

本地调试需要哪些更改?

尝试将“目录分隔符”替换为“/”?AFAIK大多数web系统使用正斜杠,尽管这是windows,所以我可能会错。这只是在尝试其他东西之前的第一个想法。@Erty谢谢你的建议。我添加了“/”,但仍然收到相同的错误。你还有其他想法吗?我能看看**我的目录名**吗?请随意更改任何标识数据。@Erty DIRECTORY\u SEPARATOR是该平台的PHP本机正确目录分隔符。在Windows和/或Linux和Mac中,其值为。因此,使用目录分隔符是安全的。