Reputation: 1644
require_once 'Zend/Loader/Autoloader.php';
$loader = Zend_Loader_Autoloader::getInstance();
$loader->registerNamespace('./application/');
$loader->setFallbackAutoloader(true);
this is not working for me i.e getinstanc() is not being called but require_once is not throwing any error
I even removed the entire zend folder from library then also it is not throwing error
Upvotes: 0
Views: 441
Reputation: 33148
require_once
will definitely throw an error if the file isn't there. You probably have display_errors turned off - check your Apache error log for the actual error, and ensure you have APPLICATION_ENV set to 'development' in your dev environment.
Also the namespace you are passing to registerNamespace is not valid, you probably want something more like $loader->registerNamespace('Application_');
Upvotes: 1