Add button to a CActiveForm

Hi!

I just want to add a button to a CActiveForm (the advanced search form). Infact I need a "save filter" button beside the standard search button that triggers an event. What is the best way to do such a thing in yii?

I added a row-button:




	<div class="row buttons">

		<?php echo GxHtml::submitButton(Yii::t('app', 'save filter')); ?>

	</div>



but I can’t understand how and where add the code to handle the save filter event.

Thanks!

Just a little step forward:

view:




	<div class="row buttons">

		<?php

		  echo CHtml::ajaxButton("Click me",

		     Yii::app()->createUrl("filtro/save"));

		?>

	

	</div>



controller:




	public function actionSave() {

		echo 'OK';

		Yii::app()->end();

	}




Is that the correct way? How can I send a parameter to the method?

Thanks!