0

Firstly; I know the documentation touches this, but I find the documentation tricky to read (as I am also just starting with CI)

I read to allow a new custom module; I simply need to add my module folder to the 'modules allowed' array. The below was commented out in my MY_fuel.php

So, since what I read referenced to do this in my 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']));
}

So, I uncommented this out; and added the 'blog' right at the start of where the array( is defined -- but it did not work!

4

1 回答 1

1

在 FUEL CMS 中有两种类型的模块:简单高级。简单模块基本上是一个数据模型,您可以将其添加到您的站点,它将在 CMS 管理员中公开表单字段。高级模块基本上是“燃料/应用程序”文件夹的一个单独实例,您可以在其中为特定目的创建控制器、模型、库等。在您的情况下,博客被认为是一个高级模块。简单模块可以通过 启用,fuel/application/config/MY_fuel_modules.php而高级模块可以通过 启用fuel/application/config/MY_fuel.php。在您的情况下,您需要将“博客”添加为允许的模块,如下所示:

$config['modules_allowed'] = array('blog');
于 2015-06-23T18:09:41.923 回答