[html-formfu] Can't fill in values from DB with Repeatable block

kewei xiao kewei.xiao at nald.ca
Thu Dec 13 20:41:41 GMT 2007


Hi Carl

    I have a Repeatable Block on my "Update Form" which will display all 
urls associate with the item I choose, so far it only fills other fields 
not repeatable part.

    here is my yml config file:

auto_fieldset: 1

elements:
  - type: Hidden
    name: id
 
  - type: Text
    name: name
 
  - type: Repeatable
    nested_name: urls
    increment_field_names: 1
    counter_name: count
    db:
      new_empty_row: url
   
    elements:
      - type: Hidden
        name: id
     
      - type: Text
        name: url
 
  - type: Hidden
    name: count

here is the code in my controller part:

  $form->defaults_from_model( $issue );

* urls is the relationship name. *

Please advise

Ke Wei



More information about the HTML-FormFu mailing list