insert multiple record

Hello,

I want to insert multiple records. Here is my _form file

_form.php

<div class="yiiForm">

<?php echo CHtml::beginForm(); ?>

<?php echo CHtml::errorSummary($model); ?>

<div class="simple">

<?php echo CHtml::activeLabelEx($model,‘startnumber’); ?>

<?php echo CHtml::activeTextField($model,‘number’); ?>

</div>

<div class="simple">

<?php echo CHtml::activeLabelEx($model,‘endnumber’); ?>

<?php echo CHtml::activeTextField($model,‘number’); ?>

</div>

<?php echo CHtml::submitButton($update ? ‘Save’ : ‘Create’); ?>

</div>

<?php echo CHtml::endForm(); ?>

</div><!-- yiiForm -->

my controller

public function actionCreate()

{


	&#036;model=new NUMBER;


	if(isset(&#036;_POST['NUMBER']))


	{


		&#036;model-&gt;attributes=&#036;_POST['NUMBER'];


		if(&#036;model-&gt;save())


		 	


			&#036;this-&gt;redirect(array('index'));


	}


	


	&#036;this-&gt;layout='bare';  // this layout allows for a clean look in an iframe


	&#036;this-&gt;render('_form',array('model'=&gt;&#036;model,'update'=&gt;false));


}

can anyone help me how to insert multiple data?

There is a doc page about this topic

http://www.yiiframework.com/doc/guide/form.table

There is also the [php] tag in this forum to make your code more readable.