yaf下无法使用Facade

Open
#92 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
php
Domain
backend

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from top-think/think-orm

All issues in top-think/think-orm

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.