yaf下无法使用Facade
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start at vendor/topthink/think-orm/src/facade/Db.php line 14 and reproduce the failure with Yaf's /application/library/ autoload directory and the reported Facade.php path. Trace how the two loaders resolve the class; done means identifying the incompatibility and documenting or implementing a supported resolution.
Written by the indexing model from the issue text.
Description
用的yaf框架,按照教程引入的时候会报af\Loader::autoload(): Failed opening script D:\phpstudy\PHPTutorial\WWW\mty\mobile/application/\library\think\Facade.php
报错出在:vendor\topthink\think-orm\src\facade\Db.php on line 14
个人推测原因是yaf的自动加载目录在 /application/library/ 而不是在文件根目录的原因
yaf 和tp都是自己十分喜爱的框架,希望能得到帮助
- Dominant language
- PHP
- Stars
- 437
- Forks
- 188
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from top-think/think-orm
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
在php7.3及以上版本中,会出错 Open
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
All issues in top-think/think-orm
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getgrav/grav-plugin-api#45 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RSS-Bridge/rss-bridge#5098 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
phingofficial/phing#2025 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
silverstripe/developer-docs#911 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100