Exception 'ErrorException' with message 'include_once(DateController.php): failed to open stream: No such file or directory' in /data/yanbingbing/Lib/Yan/Yan.php:143
源程序:
| 134 |
if (! empty($dirs) && (is_array($dirs) || is_string($dirs))) {
|
| 135 |
if (is_array($dirs)) {
|
| 136 |
$dirs = implode(PATH_SEPARATOR, $dirs);
|
| 137 |
}
|
| 138 |
$orig_inc_path = get_include_path();
|
| 139 |
set_include_path($dirs . PATH_SEPARATOR . $orig_inc_path);
|
| 140 |
include_once $file;
|
| 141 |
set_include_path($orig_inc_path);
|
| 142 |
} else {
|
| 143 |
include_once $file;
|
| 144 |
}
|
| 145 |
if ( !class_exists($name, false) && !interface_exists($name, false) )
|
| 146 |
{
|
| 147 |
require_once 'Yan/Exception.php';
|
| 148 |
throw new Yan_Exception(
|
| 149 |
"File '$file' does not exist or class '$name' was not found in the file"
|
| 150 |
);
|
| 151 |
}
|
| 152 |
return $name;
|
| 153 |
}
|
| 154 |
|
详细: