0
field1 #part of modelA
field2 #part of modelA
field3 #part of modelA
1
field1 #part of modelA
field2 #part of modelA
field2 #part of modelA
The default implementation does not provide for that. You would instead get:
0
field1
1
field2
2
field3
and so on...
For many reasons I did not want to deal with that in my app.
Bottom line, this patched version will produce output like the following:
name="Model[$index][field]" id="Model_$index_field"
The attached file is a drop-in replacement for the default JS file with no further modifications needed. Props to Ianare for the idea. His fork (which is non working for my purposes) is here:
https://github.com/d...k/yii-jqrelcopy
This script works with the datepicker as well. Hope someone finds this helpful.
Attached File(s)
-
jquery.relcopy.yii.1.1.zip (1.7K)
Number of downloads: 129

Help













