开发者

How to read protected config values in zend framework

开发者 https://www.devze.com 2023-02-28 18:49 出处:网络
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.$db = Zend_Registry::get(\'db\');

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.


$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
0

精彩评论

暂无评论...
验证码 换一张
取 消