幸福飞过海 - [原创] Yaf 使用 Eloquent ORM 做数据层 的评论 https://fengqi.me/php/386.html zh-CN Yaf 默认是不提供数据层处理功能的, 需要自行扩展.Eloquent ORM 是 Laravel 的内置 ORM 功能非常强大, 而且已经独立成组建, 任何项目都可以选择使用它.目前最新版是5... Thu, 16 Aug 2018 15:47:22 +0000 Thu, 16 Aug 2018 15:47:22 +0000 你猜呢 https://fengqi.me/php/386.html/comment-page-1#comment-39415 https://fengqi.me/php/386.html/comment-page-1#comment-39415 Thu, 16 Aug 2018 15:47:22 +0000 你猜呢 这是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-39415#comments
悟空 https://fengqi.me/php/386.html/comment-page-1#comment-39406 https://fengqi.me/php/386.html/comment-page-1#comment-39406 Wed, 18 Oct 2017 02:04:22 +0000 悟空 最好还加上 "illuminate/database": "5.0.*", 不然在使用 Eloquent ORM 分页的时候会报错!

]]>
https://fengqi.me/php/386.html/comment-page-1#comment-39406#comments
风起 https://fengqi.me/php/386.html/comment-page-1#comment-39405 https://fengqi.me/php/386.html/comment-page-1#comment-39405 Thu, 12 Oct 2017 07:49:16 +0000 风起 性能损失是必然的, 其实没必要太在意框架层面的性能, 更多的还是考虑适用性, 性能有太多方式优化了, 当然我本人还是更倾向于用Medoo这类简单的数据库访问类

]]>
https://fengqi.me/php/386.html/comment-page-1#comment-39405#comments
十五年 https://fengqi.me/php/386.html/comment-page-1#comment-39404 https://fengqi.me/php/386.html/comment-page-1#comment-39404 Fri, 29 Sep 2017 08:21:57 +0000 十五年 引入 ORM性能骤降..... 丧失了yaf的本意。不知道是不是我引入的文件过多,感觉和其他php轻框架没啥区别

]]>
https://fengqi.me/php/386.html/comment-page-1#comment-39404#comments
黄因斯坦 https://fengqi.me/php/386.html/comment-page-1#comment-39401 https://fengqi.me/php/386.html/comment-page-1#comment-39401 Tue, 12 Sep 2017 03:07:04 +0000 黄因斯坦 yaf.use_spl_autoload = 1
这个配置还没有配 所以才会出现 楼上的错误

]]>
https://fengqi.me/php/386.html/comment-page-1#comment-39401#comments
风起 https://fengqi.me/php/386.html/comment-page-1#comment-39387 https://fengqi.me/php/386.html/comment-page-1#comment-39387 Mon, 13 Jun 2016 10:40:37 +0000 风起 贴代码吧, 可以放 github, 或者看下 vendor/composer/autoload_psr4.php 里面的路径对不对.

]]>
https://fengqi.me/php/386.html/comment-page-1#comment-39387#comments
big https://fengqi.me/php/386.html/comment-page-1#comment-39386 https://fengqi.me/php/386.html/comment-page-1#comment-39386 Wed, 08 Jun 2016 07:52:39 +0000 big 博主你好,我确认了,也执行composer了,可是还是报一样的错误,想能指点下吗?qq:782319392谢谢了

]]>
https://fengqi.me/php/386.html/comment-page-1#comment-39386#comments
风起 https://fengqi.me/php/386.html/comment-page-1#comment-39385 https://fengqi.me/php/386.html/comment-page-1#comment-39385 Mon, 06 Jun 2016 04:07:01 +0000 风起 先确认文件存在, 然后试着执行下 composer dump-autoload

]]>
https://fengqi.me/php/386.html/comment-page-1#comment-39385#comments
风起 https://fengqi.me/php/386.html/comment-page-1#comment-39384 https://fengqi.me/php/386.html/comment-page-1#comment-39384 Mon, 06 Jun 2016 04:06:55 +0000 风起 先确认文件存在, 然后试着执行下 composer dump-autoload

]]>
https://fengqi.me/php/386.html/comment-page-1#comment-39384#comments
big https://fengqi.me/php/386.html/comment-page-1#comment-39383 https://fengqi.me/php/386.html/comment-page-1#comment-39383 Mon, 06 Jun 2016 02:14:51 +0000 big "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 6

Fatal error: Class 'User' not found in E:\yaf\application\controllers\index.php on line 6

]]>
https://fengqi.me/php/386.html/comment-page-1#comment-39383#comments