【发布时间】:2015-06-19 19:25:51
【问题描述】:
首先;我知道文档涉及到这一点,但我发现文档难以阅读(因为我也刚开始使用 CI)
我读到允许一个新的自定义module;我只需要将我的模块文件夹添加到 'modules allowed' 数组中。以下内容在我的MY_fuel.php中被注释掉了
所以,因为我在MY_fuel.php 中读到的内容提到了这样做
// Uncomment if you want to control FUEL settings in the CMS. Below are a couple examples of ones you can configure
$config['settings'] = array();
$config['settings']['site_name'] = array();
if (!empty($config['modules_allowed']))
{
$config['settings']['modules_allowed'] = array('blog' 'type' => 'multi', 'options' => array_combine($config['modules_allowed'], $config['modules_allowed']));
}
所以,我取消了注释;并在定义 array( 的开头添加了“blog”——但它不起作用!
【问题讨论】:
标签: php codeigniter model-view-controller fuelcms