Use form_builder->create_custom() in a base module model

edited August 2011 in Modules
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

  • edited 9:38AM
    Try doing the following:
    $fields['item1'] = array('type'=>'custom', 'func' => 'f_custom');
  • edited 9:38AM
    It works! Thanks a lot.
Sign In or Register to comment.