Use form_builder->create_custom() in a base module model
Hi there,
Let's say I have the function f_custom in the function form_fields.
I do $this->form_builder->create_custom('f_custom', $values);
I want to use this in $fields['item1'] = array('type'=>'f_custom'), but I can't seem to make it work.
Is there any way to do this?
Comments
$fields['item1'] = array('type'=>'custom', 'func' => 'f_custom');