How to register custom library in zend framework
2 answers
There are several ways to do this:
You can add namespaces to your application.ini file:
[production]
autoloaderNamespaces[] = "Dtd_"
Or, in your bootstrap:
protected function _initAutoloader()
{
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace("Dtd_");
}
+5
source to share