幸福飞过海 - [原创] Yaf 使用 Eloquent ORM 做数据层 的评论 https://fengqi.me/php/386.html Yaf 默认是不提供数据层处理功能的, 需要自行扩展.Eloquent ORM 是 Laravel 的内置 ORM 功能非常强大, 而且已经独立成组建, 任何项目都可以选择使用它.目前最新版是5... 你猜呢 https://fengqi.me/php/386.html/comment-page-1#comment-39415 2018-08-16T15:47:22+00:00 这是php什么版本的啊? 我也报错 Warning: Yaf\Loader::autoload(): Failed opening script D:\php\PHPTutorial\WWW/application\library\application\Models\User.php: No such file or directory in D:\php\PHPTutorial\WWW\application\controllers\Index.php on line 21 执行了 composer dump-autoload也不行,还是报错我的7.0.12 悟空 https://fengqi.me/php/386.html/comment-page-1#comment-39406 2017-10-18T02:04:22+00:00 最好还加上 "illuminate/database": "5.0.*", 不然在使用 Eloquent ORM 分页的时候会报错! 风起 https://fengqi.me/php/386.html/comment-page-1#comment-39405 2017-10-12T07:49:16+00:00 性能损失是必然的, 其实没必要太在意框架层面的性能, 更多的还是考虑适用性, 性能有太多方式优化了, 当然我本人还是更倾向于用Medoo这类简单的数据库访问类 十五年 https://fengqi.me/php/386.html/comment-page-1#comment-39404 2017-09-29T08:21:57+00:00 引入 ORM性能骤降..... 丧失了yaf的本意。不知道是不是我引入的文件过多,感觉和其他php轻框架没啥区别 黄因斯坦 https://fengqi.me/php/386.html/comment-page-1#comment-39401 2017-09-12T03:07:04+00:00 yaf.use_spl_autoload = 1 这个配置还没有配 所以才会出现 楼上的错误 风起 https://fengqi.me/php/386.html/comment-page-1#comment-39387 2016-06-13T10:40:37+00:00 贴代码吧, 可以放 github, 或者看下 vendor/composer/autoload_psr4.php 里面的路径对不对. big https://fengqi.me/php/386.html/comment-page-1#comment-39386 2016-06-08T07:52:39+00:00 博主你好,我确认了,也执行composer了,可是还是报一样的错误,想能指点下吗?qq:782319392谢谢了 风起 https://fengqi.me/php/386.html/comment-page-1#comment-39385 2016-06-06T04:07:01+00:00 先确认文件存在, 然后试着执行下 composer dump-autoload 风起 https://fengqi.me/php/386.html/comment-page-1#comment-39384 2016-06-06T04:06:55+00:00 先确认文件存在, 然后试着执行下 composer dump-autoload big https://fengqi.me/php/386.html/comment-page-1#comment-39383 2016-06-06T02:14:51+00:00 "illuminate/events": "5.0.*",这个包已经加上了 但是还是报错Warning: Yaf\Loader::autoload(): Failed opening script E:\yaf/application/\library\User.php: No such file or directory in E:\yaf\application\controllers\index.php on line 6Fatal error: Class 'User' not found in E:\yaf\application\controllers\index.php on line 6