michael.shi 2013-03-13 17:11:31 3581次浏览 1条回复 0 0 0

PHP warning

include(User.php) [function.include]: failed to open stream: No such file or directory

E:\xampp\htdocs\yii\framework\YiiBase.php(421)

409 { 410 include($classFile); 411 if(YII_DEBUG && basename(realpath($classFile))!==$className.'.php') 412 throw new CException(Yii::t('yii','Class name "{class}" does not match class file "{file}".', array( 413 '{class}'=>$className, 414 '{file}'=>$classFile, 415 ))); 416 break; 417 } 418 } 419 } 420 else 421 include($className.'.php'); 422 } 423 else // class name with namespace in PHP 5.3 424 { 425 $namespace=str_replace('\','.',ltrim($className,'\')); 426 if(($path=self::getPathOfAlias($namespace))!==false) 427 include($path.'.php'); 428 else 429 return false; 430 } 431 return class_exists($className,false) || interface_exists($className,false); 432 } 433 return true;

Stack Trace #0 + E:\xampp\htdocs\yii\framework\YiiBase.php(421): YiiBase::autoload() #1 unknown(0): YiiBase::autoload("User")

您需要登录后才可以回复。登录 | 立即注册