配置文件中键要和类名匹配。因此,Acme_Example类的构造函数参数被放置在配置文件的一个关联数组中,该数组是配置文件中键为['Acme_Example']所指的值。
Acme_Example
['Acme_Example']
<?php // SYSTEM/config.php $config['Acme_Example'] = array( // ... );
Copyright © 2010 Solar For PHP 5 In China, All Rights Reserved.
Powered By Roy Gu