I have these lines in my application.ini
how can I read user in my contrroler
resources.doctrine.dbal.connections.default.parameter
How about something like:
$config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/application.ini', APPLICATION_ENV);
$connectionParams = $config->resources->doctrine->connections;
Or during Bootstrap
, create and save this $config
object in the Bootstrap
or in the Zend_Registry
for later retrieval in your controller.