php - allow custom modules in fuel CMS -
firstly; know documentation touches this, find documentation tricky read (as starting ci)
i read allow new custom module
; need add module folder 'modules allowed' array. below commented out in my_fuel.php
so, since read referenced in my_fuel.php
// uncomment if want control fuel settings in cms. below couple examples of ones 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, uncommented out; , added 'blog
' right @ start of array(
defined -- did not work!
in fuel cms there 2 types of modules: simple & advanced. simple module data model can add site expose form fields in cms admin. advanced module separate instance of "fuel/application" folder can create controllers, models, libraries, etc. specific purpose. in case, blog considered advanced module. simple modules can enabled via fuel/application/config/my_fuel_modules.php
whereas advanced modules can enabled in fuel/application/config/my_fuel.php
. in case, need add "blog" allowed module so:
$config['modules_allowed'] = array('blog');
Comments
Post a Comment