Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are Zend Framework "Resources"?

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.

like image 494
Rei Avatar asked Nov 22 '25 04:11

Rei


1 Answers

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.

like image 156
Phil Avatar answered Nov 24 '25 20:11

Phil



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!