i was just wondering if is there a different between this 2 things …
<?php echo CHtml::beginForm(); ?>
<div class="row buttons">
<?php echo CHtml::submitButton('Ipod',
array(
'ajax' => array(
'type'=>'POST', //request type
'url'=>"/yii_new/HelloWorld/index.php?r=HelloWorld/erg", //url to call
'update'=>'#erg',
))
); ?>
<?php echo CHtml::ajaxButton ("Update data",
CController::createUrl('/HelloWorld/erg'),
array('update' => '#erg', 'type' => 'POST'));
?>
</div>
<?php echo CHtml::endForm(); ?>