More information about this topic
Reset database  | 
Image Button Ajax example
NOw:

protected/modules/FormsModule/controllers/FormsController.php

	public function actionImageButtonAjax()
	{
		$this->render('imageButtonAjax');
	}

protected/modules/FormsModule/controllers/FormsController.php

	public function actionImageButtonAjaxget()
	{
		echo date('Y-m-d H:i:s');
		Yii::app()->end();
	}

rotected/modules/FormsModule/views/forms/imageButtonAjax.php

	
	 $form=$this->beginWidget('CActiveForm', array( 'id'=>'form1',) ); 
	
	echo CHtml::imageButton(Yii::app()->request->baseUrl.'/images/button_go2.gif', array(
									// 'onclick'=>'setbankgo()',
									'ajax'=>array(
												'type'=>'GET',
												'url'=>CController::createUrl('/FormsModule/forms/imageButtonAjaxget'),
												'update'=>'#IndexForm_body',	
										),
									));
	echo 'NOw: <div id="IndexForm_body"></div>';
	$this->endWidget();