Zend, Global variable in Application.ini?

后端 未结 6 1254
失恋的感觉
失恋的感觉 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条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-04 15:07

    You can specify value in the application.ini and in the Bootsrap.php you read it and save in Zend_Registry. You can also use PHP define method to create constants (if you veriable is constant).

提交回复
热议问题