Zend Framework correct naming convention for utilising configs from application.ini

mhbernheim

New Member
I am using Zend_Oauth_Consumer which requires a number of config values to be passed. Currently i am passing an array into the constructor like so:\[code\] $config = array( 'callbackUrl' => 'http://www.domain.com/twitter/callback', 'siteUrl' => 'http://twitter.com/oauth', 'consumerKey' => 'XXXXXXXXXXXXXXXXXX', 'consumerSecret' => 'YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY' ); $consumer = new Zend_Oauth_Consumer($config);\[/code\]I dont like this approach as these configs are now within the controller and i would like them to be in application.ini like all my other configuration values - how would i go about this? is there a naming convention to follow for example?
 
Back
Top