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

How to extend Yaf_Controller_Abstract from another namespace? #172

Open
undeadindustries opened this issue Jun 24, 2015 · 2 comments
Open

Comments

@undeadindustries
Copy link

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

@undeadindustries
Copy link
Author

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?

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