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:
Thanks for advice! Regars,
in Application.ini file
someservice.apikey = 12345678
someservice.passkey = 87654321
in bootstrap
public function _initSomeservice()
{
$someservice = $this->getOption('someservice');
Zend_Registry::set('someservice', $someservice);
}
to pull from Registry
$config = Zend_Registry::get('someservice');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With