How do i use batch insert in yii
===

Please i need a big help here. AM developing a yii application where i have to loop through my form and do a batch insert. I found bacth update in yii but ive not been able to see how to do batch insert and validation. Please help.

Here is my View:

 

    <?php for($i=0;$i< $this->getDisplayArchModel();$i++) {?>
         <FIELDSET class="radios">
              <div class="row">
                <?php echo $form->labelEx($model,'competency_type'); ?>
		<?php echo $form->textField($model,'competency_type'); ?>
		<?php echo $form->error($model,'competency_type'); ?>
              </div>
             
             <div class="row">
		<?php echo $form->labelEx($model,'definition'); ?>
		<?php echo $form->textArea($model,'definition'); ?>
		<?php echo $form->error($model,'definition'); ?>
	</div> 
             
              </fieldset>
           <?php } ?>