Multi field form - Multi example 2
How do I use multi example 2 featured here:
http://docs.getfuelcms.com/general/forms#multi The documentation doesn't seem to have anything on it? Infact I find the overall documentation for multi to be pretty confusing. An example of it working with a model would be great!
Comments
function form_fields($values = array(), $related = array()) { ..... $fields['multi_example'] = array('type' => 'multi', 'options' => $options, 'value' => 'a'); ..... return $fields; }
https://github.com/daylightstudio/FUEL-CMS-Tester-Module
Specifically, in the controller, it uses Form_builder to create the form which gets passed to a view:
https://github.com/daylightstudio/FUEL-CMS-Tester-Module/blob/master/controllers/tester.php