I have these lines in my application.ini
how can I read user in my contrroler
resources.doctrine.dbal.connections.default.parameter
This goes in your controller.
$bootstrap = $this->getInvokeArg('bootstrap'); $appinidata = $bootstrap->getOptions(); $user=$appinidata['resources']['doctrine']['dbal']['connections']['default']['parameters'] ['user'];
This should print "root".
print_r($user);