简体   繁体   中英

How to know what config string I can use in application.ini in zend_application?

such as:

[production]
resources.frontController.moduleDirectory = APPLICATION_PATH

How to know "resources.frontController.moduleDirectory" is a valid config item

All keys that start with resources.someResourceName will be passed to the corresponding resource. Each individual resource is responsible for dealing with those options.

The Zend Framework manual includes a page that lists configuration keys for the built-in resources. While that page should probably cover most things, it's not necessarily exhaustive.

If the manual doesn't list the keys for the resource you're looking for, it's often a good assumption that the same options you can programmatically pass to a Zend Framework component are also keys for its associated resource. As a last resort, looking in the resource's code (which will be in the Zend/Application/Resource folder for built-in resources) should at least give you an idea what keys are valid.

Of course, you can also write your own resource plugins , and you'd be in control of what configuration keys they accept.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM