I have created my own library in Zend framework for some custom requirements. The Prefix that I am using in each class is "Dtd_". I would like to know that how would I register this so that it could become available globally.
There are a couple of methods to do this:
You can add namespaces in your application.ini file:
[production]
autoloaderNamespaces[] = "Dtd_"
Or, in your bootstrap:
protected function _initAutoloader()
{
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace("Dtd_");
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With