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.
ひぃ…
データグリッド ファイルの構成ファイルから保護されたデータベースの値を読み取りたいのですが、どのようにすればよいか教えてください...事前に感謝します。
$db = Zend_Registry::get('db');
通常、このコードが行うことは、レジストリの DB 変数を取得することです。このコードは構成ファイルにアクセスしません。
設定ファイルを使用したい場合は、
Zend_Registry::get('config')->YOUR->KEY->GOES->HERE