Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

本地类和全局类路径的问题 #394

Open
wofengletian opened this issue Mar 13, 2018 · 1 comment
Open

本地类和全局类路径的问题 #394

wofengletian opened this issue Mar 13, 2018 · 1 comment

Comments

@wofengletian
Copy link

如果在php.ini中没有配置yaf.library,直接设置本地类路径application.library.directory,则全局类的路径会变成本地类的路径,导致application/library中的类找不到。
如果设置了yaf.library,则设置本地类路径没有问题。这是一个bug还是有别的考虑?

@letwang
Copy link

letwang commented Dec 6, 2018

是功能
1个大项目 有大家公共的类库 叫做 vendor
也有自己项目特殊的类库 叫library
所以 最好同时存在

参考
https://github.com/letwang/HookPHP/blob/master/app/admin/Bootstrap.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants