'myform', )); echo 'Some form fields.'; echo CHtml::endForm(); ?>This example uses the CHtml::endForm method to close an HTML form that was previously opened using CHtml::beginForm. It also applies an ID attribute to the form element. Package library: Yii Framework.