开发者

How to read protected config values in zend framework

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜