Problem about CHtml::submitButton

I went through _form.php. I found below codes at the end of the php file. I guess it is used to commit the from. question is what specific controller and function would be invoked after form submitted. as I didn’t find any definition in _form.php

<div class="row buttons">

&lt;?php echo CHtml::submitButton(&#036;model-&gt;isNewRecord ? 'Create' : 'Save'); ?&gt;

</div>

Another question is whether we could use the traditional way to submit form through html. like

<form>

<input type=submit value = create/>

</form>

if we can. same question with first. how to define the controller and specific function to handle this form commit.could you please give a example.thx a lot

The form is opened with a call to CActiveForm… as per documentation http://yiiframework.com/doc/api/1.1/CActiveForm#action-detail

if the action property is not set the current page URL is used when submitting the form…

You can type the <form> tags by yourself… but this way you loose many Yii additions like the ajax validation for example…

The <form action="…"> defines to what URL the form will be submitted… and that URL defines the controller and action…

If it’s still unclear to you… I suggest you read the Definitive guide to Yii

thx a lot