What are Zend Framework “Resources”?

前端 未结 2 1453
南旧
南旧 2021-01-20 23:22

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 betwee

2条回答
  •  青春惊慌失措
    2021-01-20 23:51

    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.

提交回复
热议问题