允许燃料CMS中的自定义模块

时间:2015-06-19 19:25:52

标签: php codeigniter model-view-controller fuelcms

首先;我知道文档涉及到这一点,但我发现文档很难阅读(因为我也只是从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']));
}

所以,我把它取消注释了;并在blog定义的位置开始时添加了“array(”,但它没有用!

1 个答案:

答案 0 :(得分:1)

在FUEL CMS中,有两种类型的模块:simple&amp; advanced。简单模块基本上是一个数据模型,您可以将其添加到您的站点,这将公开CMS管理员中的表单字段。高级模块基本上是“fuel / application”文件夹的单独实例,您可以在其中为特定目的创建控制器,模型,库等。在您的情况下,博客被视为高级模块。可以通过 <ImageView android:id="@+id/ImageView" android:layout_width="match_parent" android:layout_height="150dp" android:layout_centerInParent="true" android:transitionName="detail_image" android:scaleType="centerCrop" /> 启用简单模块,而可以在 public void displayImageGlide(String url, ImageView imageView, Boolean dontTransform) { if (dontTransform) { Glide.with(this).load(url) .skipMemoryCache(true) .diskCacheStrategy(DiskCacheStrategy.SOURCE) .dontTransform() .into(imageView); return; } Glide.with(this).load(url) .skipMemoryCache(true) .diskCacheStrategy(DiskCacheStrategy.SOURCE) .into(imageView); } 中启用高级模块。在您的情况下,您需要将“博客”添加为允许的模块,如下所示:

fuel/application/config/MY_fuel_modules.php