I have one form, and would like to put two submitButton there, one is search, the other is export(to save the search result in a file).
Here is my code, search button works fine. For the export button, I would like to pass the search result to the function export in controller. How could I achieve this? Thanks a lot.
<?php $form=$this->beginWidget(‘CActiveForm’, array(
</table> <div class="row buttons"> <?php echo CHtml::submitButton('Search'); ?> &emsp;&emsp;&emsp; <?php echo CHtml::submitButton('Export',array('params'=>array('model'=>$model,),'submit'=>'glncrna/export')); ?> </div>
<!-- new code end -->
<?php $this->endWidget(); ?>