简体   繁体   中英

Understanding the application.ini and the bootstrap

I have been trying to figure this out for quite a while, but what is the exact difference between the application.ini and the bootstrap file in a Zend Project?

Both seem to be used to add resources, helpers, etc. But i do not quite understand what the difference is between adding something in the bootstrap or adding it trough the application.ini. What is the benefit of either approach against the other?

Is there anyone who could explain this to me?

The configuration set out in application.ini drives the built in (and any 3rd party or custom built) application resource plugins . You are limited by what the resource plugins can do with your config settings.

Any code in your Bootstrap class is meant to offer more fine-grained customisation. Here you can do anything you're able to put into PHP code.

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