How to read protected config values in zend framework

336 Views Asked by At

Hii...

I would like to read protected database values from config file in datagrid file, plz help how can I do that...thanx in advance.

1

There are 1 best solutions below

0
On BEST ANSWER
$db = Zend_Registry::get('db'); 

Usually what this code does is get at the DB variable in your registry. This code does not access the config file.

If you want to get at the config file use,

Zend_Registry::get('config')->YOUR->KEY->GOES->HERE