« Return to Thread: file not found error - 1.03

Re: file not found error - 1.03

by Ralf Eggert :: Rate this Message:

Reply to Author | View in Thread

Hi, its me again,

I can solve my problem for the moment when I comment out the lines
165-167 and 282-284 in Zend_Controller_Dispatcher_Standard file.

I guess the problem lies in my directory structure and the naming of my
controller classes. For the module "destination" and the controller
"book" the dispatcher expects a controller class called
"Destination_BookController".

When I use Zend_Loader::loadClass($class) in my __autoload() function I
guess I need to locate the "Destination_BookController" class in the
file Destination/BookController.php and not in
Destination/Controller/BookController.php which worked until 1.0.2.

So, when I rename my controller class into "Destination_Controller_Book"
and locate it in the Destination/Controller/Book.php then the
Zend_Loader::loadClass($class) in my __autoload() function should work,
but on the other side the dispatcher stills expects the controller class
to be called "Destination_BookController". Is this correct?

Any ideas how to solve this without commenting out the lines I mentioned
above?

Best Regards,

Ralf

 « Return to Thread: file not found error - 1.03