如何在 zend 框架 2 中检索配置返回的数组
how retrieve array returned by config in zend framework 2
如何在 zend framework 2 中获取 config/autoload 返回的数组?
#config/autoload/myconfig.local.php
return array('foo' => 'bar');
我注意到如果文件没有 "return array()" 将抛出异常
此配置会自动合并到整个应用配置中。您可以通过致电
获得
$sl->get('config')
在您的 ServiceManager 上。会有你所有的配置。
如何在 zend framework 2 中获取 config/autoload 返回的数组?
#config/autoload/myconfig.local.php
return array('foo' => 'bar');
我注意到如果文件没有 "return array()" 将抛出异常
此配置会自动合并到整个应用配置中。您可以通过致电
获得$sl->get('config')
在您的 ServiceManager 上。会有你所有的配置。