We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How to extend Yaf_Controller_Abstract from the library/MyApp folder, from another namespace?
I'd rather have all my libraries in one folder application/library/MyApp.
If I try: namespace MyApp; class MyAppControl extends \stdClass\Yaf_Controller_Abstract { ...}
I get: Warning: Yaf_Loader::autoload(): Failed opening script .../application/library/stdClass/Yaf/Controller/Abstract.php
The text was updated successfully, but these errors were encountered:
If edit my controller: class ExamplesController extends MyApp\Controller { ... }
YAF looks for application/controllers/MyApp/.php
If I rename Controller to Control: class ExamplesController extends MyApp\Control { ... }
YAF looks from application/library/MyApp/Control.php
Seems like it shouldn't try to find a controller if it's the first word or first part of word after a namespace?
Sorry, something went wrong.
已经解决 参考这里 https://github.com/letwang/HookPHP/blob/master/app/admin/controllers/Abstract.php https://github.com/letwang/HookPHP/blob/master/app/admin/controllers/Lang.php
No branches or pull requests
How to extend Yaf_Controller_Abstract from the library/MyApp folder, from another namespace?
I'd rather have all my libraries in one folder application/library/MyApp.
If I try:
namespace MyApp;
class MyAppControl extends \stdClass\Yaf_Controller_Abstract { ...}
I get: Warning: Yaf_Loader::autoload(): Failed opening script .../application/library/stdClass/Yaf/Controller/Abstract.php
The text was updated successfully, but these errors were encountered: