Hi,
I'm trying to set up a project as outlined in the zend framework documentation here: Zend Framework: Documentation
Code:
application/
default/
controllers/
IndexController.php
FooController.php
models/
views/
scripts/
index/
foo/
helpers/
filters/
blog/
controllers/
IndexController.php
FooController.php
models/
views/
scripts/
index/
helpers/
filters/
My problem is that, my Blog_Controller_FooController class extends the default FooController.
default/controllers/FooController.php:
Code:
Class FooController extends Default_Controller_Base
{ ...
}
blog/controllers/FooController.php:
Code:
require_once(APPLICATION_PATH . '/default/controllers/FooController.php');
Class Blog_FooController extends FooController
{ ...
}
I need to put require_once or else the application cannot find class FooController. I can't change the class name FooController to Default_Controller_FooController either, as it would not recognize when I try to call its methods.
Is there any other way I can solve this without using require_once? I'd sincerely appreciate if you could offer any suggestion.
Thanks,
EC