如何覆盖./vendor/.../module_name/config/module.config.php下的配置文件?
不,这个链接对我不起作用.我不知道为什么.
尝试命名配置文件filename.global.php或filename.local.php.
在application.config.php里面它有这一行:
config/autoload/{,*.}{global,local}.php
Run Code Online (Sandbox Code Playgroud)
关于ZfcUser模块和改变主要路线.
在zfcuser.global.php修改文件底部的以下内容:
return array(
'zfcuser' => $settings,
'service_manager' => array(
'aliases' => array(
'zfcuser_zend_db_adapter' => (isset($settings['zend_db_adapter'])) ? $settings['zend_db_adapter']: 'Zend\Db\Adapter\Adapter',
),
),
'router' => array(
'routes' => array(
'zfcuser' => array(
'options' => array(
'route' => '/member',
'defaults' => array(
'controller' => 'zfcuser',
'action' => 'index',
),
),
)
)
)
);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1988 次 |
| 最近记录: |