How to add dynamically attributes to a model ?

I want to create forms with a dynamic number of fields. Each field would be called “field0” “field1” … 'fieldN".

How can I create the same dynamic attrivutes in the corresponding model ? (or maybe there is a more clever way to do this…)

May be you should take a look at this extension: