I know this is quite silly to ask, I oftentimes see this term on the documentation but I still don't get enlightened by such contexts I encounter. What is the difference between "resources" and "libraries". In my assumption I made the conclusion that they are just set of loaded classes. I would like to make sure if I am correct. But I do not comprehend why they included the functionality of the Zend_Cache, Zend_Translate, Zend_Dojo etc. on the Zend_Application_Resource. Thank you very much and please excuse my English.
Resources are objects you initialise during bootstrap via your configuration file and are generally available to your entire application.
There are a set of built-in resources as described here - http://framework.zend.com/manual/en/zend.application.available-resources.html
You can also provide your own.
A library is a collection of classes that you may use in your application. Objects are generally instantiated when required.
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