我试图让这个cakephp项目在我的localhost上运行,但总是收到一些错误消息
我收到此错误消息:
警告:include(Cake\bootstrap.php)[function.include]:无法打开流:第77行的C:\ wamp\www\cts\app\webroot\index.php中没有此类文件或目录
警告:include()[function.include]:在C中打开'Cake\bootstrap.php'以包含(include_path ='C:\ wamp\www\cts\lib;.; C:\ php\pear')失败第77行\ wamp\www\cts\app\webroot\index.php
致命错误:找不到CakePHP核心.检查APP/webroot/index.php中CAKE_CORE_INCLUDE_PATH的值.它应该指向包含\ cake核心目录和\ vendors根目录的目录.在第86行的C:\ wamp\www\cts\app\webroot\index.php中
结束
code* Index.php文件:
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
if (function_exists('ini_set')) {
ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
}
/**line 77**/
if (!include('Cake' . DS . 'bootstrap.php')) {
$failed = true;
}
} else {
if (!include(CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php')) {
$failed = true;
}
}
if (!empty($failed)) {
/**line 86**/
trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
}
Run Code Online (Sandbox Code Playgroud)
文件结束
Jos*_*uez 10
检查index.php的第59行你会看到类似的东西
//define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib');
Run Code Online (Sandbox Code Playgroud)
取消注释该行,如果它不起作用,则硬编码到lib /文件夹的完整路径,该文件夹包含带有所有CakePHP库的Cake文件夹.
| 归档时间: |
|
| 查看次数: |
12607 次 |
| 最近记录: |