« 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,

I think I have the same problem after upgrading to 1.0.3 version. My
trace looks like this:

'File "BookController.php" was not found' (length=39)

#0 E:\_library\Zend\Loader.php(91):
Zend_Loader::loadFile('BookController....', Array, true)
#1 E:\_application\config.php(40): Zend_Loader::loadClass('BookController')
#2 [internal function]: __autoload('BookController')
#3 E:\_library\Zend\Controller\Dispatcher\Standard.php(165):
class_exists('BookController')
#4 E:\_application\Main\Plugin\Notfound.php(28):
Zend_Controller_Dispatcher_Standard->isDispatchable(Object(Zend_Controller_Request_Http))
#5 E:\_library\Zend\Controller\Plugin\Broker.php(307):
Main_Plugin_Notfound->preDispatch(Object(Zend_Controller_Request_Http))
#6 E:\_library\Zend\Controller\Front.php(916):
Zend_Controller_Plugin_Broker->preDispatch(Object(Zend_Controller_Request_Http))
#7 E:\www.travello-dev.com\public\index.php(50):
Zend_Controller_Front->dispatch(Object(Zend_Controller_Request_Http),
Object(Travello_Controller_Response))
#8 {main}

The controller class to be loaded is called Destination_BookController
and was loaded properly before I upgraded. It is located in my
application directory Destination/Controller/BookController.php and I
did not change any other settings.

First, I would expect "Destination_BookController" class to be loaded.
Second, could this be due to problem with my __autoload function which
looks like this:

  function __autoload($class)
  {
    Zend_Loader::loadClass($class);
  }

Do I need to pass a directory to Zend_Loader::loadClass method? Why was
this changed? What went wrong here and how can I solve this problem?

Thanks and Best Regards,

Ralf

 « Return to Thread: file not found error - 1.03