我刚刚安装了propel orm并完成了设置,但是在包含lib/propel.php文件后,它找不到propel.php文件,这是我的代码
<?php
$projectPath = realpath( dirname( __FILE__ ) . DIRECTORY_SEPARATOR. '..');
$modelPath = $projectPath . "/model/classes";
// Include the man Propel script
require_once $projectPath . '/propel/lib/Propel.php';
// Initialie Propel with the runtime configuration
Propel::init('model/conf/ehm-conf.php');
// Add the generated 'classes' directory to the include path
//set_include_path("model/classes" . PATH_SEPARATOR . get_include_path());
set_include_path($modelPath . PATH_SEPARATOR . get_include_path());
?>
这是我的错误输出
[client 127.0.0.1] PHP 警告:require_once(C:\Apache Software Foundation\Apache2.2\htdocs/propel/lib/Propel.php) [function.require-once]:无法打开流:没有这样的文件或目录在 C:\Apache Software Foundation\Apache2.2\htdocs\ehm\propel_init.php 第 5 行 [Tue Nov 12 22:54:42 2013] [error] [client 127.0.0.1] PHP 致命错误:require_once() [ function.require]:在 C:\Apache Software 中打开所需的 'C:\Apache Software Foundation\Apache2.2\htdocs/propel/lib/Propel.php' (include_path='.;C:\php\pear') 失败Foundation\Apache2.2\htdocs\ehm\propel_init.php 在第 5 行