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...)
Page 1 of 1
How to add dynamically attributes to a model ?
#2
Posted 08 March 2010 - 04:24 AM
jptsetung, on 07 March 2010 - 04:13 PM, said:
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...)
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: http://www.yiiframew...ion/eavbehavior
Share this topic:
Page 1 of 1

Help











