如果在Controller中使用application.ini中的資訊可以透過Zend_Config_Ini來取得

application.ini

[ldap]
ldap.master.host = "ldap.com"
ldap.master.port = "636"
ldap.master.username = "uid=webauth,ou=netgroup,dc=test,dc=org,dc=tw"
ldap.master.password = "123"
ldap.master.bindRequiresDn = true
ldap.master.baseDn = "dc=test,dc=org,dc=tw"
ldap.master.useSsl = true

Controller

//選擇 ldap 群組
$config = new Zend_Config_Ini(dirname(__DIR__) . '/configs/application.ini', 'ldap');

//將ldap.master群組轉成Array
$ldap_master = $config->ldap->master->toArray();
print_r($ldap_master);

//將ldap轉成Array
$ldap = $config->ldap->toArray();
print_r($ldap);