Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
喂...
我想从datagrid文件中的配置文件中读取受保护的数据库值,请帮助我该怎么做...谢谢。
$db = Zend_Registry::get('db');
通常,此代码所做的是获取注册表中的 DB 变量。此代码不访问配置文件。
如果你想获取配置文件使用,
Zend_Registry::get('config')->YOUR->KEY->GOES->HERE