Zend, Global variable in Application.ini?

后端 未结 6 1325
失恋的感觉
失恋的感觉 2021-02-04 14:24

I have a question as I need to have a global static variable and I have question is any possibility to add it to the application.ini file, how to do it?

Or I have to:

6条回答
  •  萌比男神i
    2021-02-04 15:03

    I just added define('VARIABLE_NAME', 'Something here'); to bootstrap. Instant global constants.

    These constants were placed inside of a protected _intiFuncName function inside of the bootstrap extends class

提交回复
热议问题