Yii Framework Forum: Howto add a counter to each row in MultiModelForm - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Howto add a counter to each row in MultiModelForm

#1 User is offline   reburg 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 111
  • Joined: 15-January 13

Posted 18 November 2017 - 01:02 PM

I am using the extension MultiModelForm.

Is there a way to add a counter at the beginning of each row?

I looked into the code of the class MultiModelForm. I see that there exists a counter-variable $idx inside the function "run ()". But I cannot find a way to display this counter inside the form. If I echo it, then the counter appears of course outside the form.
Greetings from Austria
Ferdinand
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users