dongwuxie7976 2010-12-25 11:37
浏览 58

Yii博客教程错误:无法打开流

When i login occurs following problem.

PHP Error

Description

include(User.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory

Source File

D:\Badrakh\xampp\htdocs\yii\framework\YiiBase.php(395)

00383:      * @return boolean whether the class has been loaded successfully
00384:      */
00385:     public static function autoload($className)
00386:     {
00387:         // use include so that the error PHP file may appear
00388:         if(isset(self::$_coreClasses[$className]))
00389:             include(YII_PATH.self::$_coreClasses[$className]);
00390:         else if(isset(self::$classMap[$className]))
00391:             include(self::$classMap[$className]);
00392:         else
00393:         {
00394:             if(strpos($className,'\\')===false)
00395:                 include($className.'.php');
00396:             else  // class name with namespace in PHP 5.3
  • 写回答

1条回答 默认 最新

  • doumou1864 2010-12-25 11:43
    关注

    The file User.php doesn't exists. Are you sure it is the same dir? And is the include path set correct?

    Some extra info will make it easier to awnser this question.

    评论

报告相同问题?

悬赏问题

  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?