Point: 1
If you use only the $ this-> widget, then form input elements (e.g. textFields, textAreas, dropdownlists, checkBoxes, etc.) will be placed outside the form. as
<form method="post" action="#">
</form>
<input type="text" name="textField">
Point: 2
,
$this->beginWidget
$this->endWidget();
, HTML
<form method="post" action="#">
<input type="text" name="textField">
</form>
: 3
beginWidget ($ form)
(i)
public function actionFunctionName()
{
$model=new ModelClassName;
$this->render('viewFileName',array('model'=>$model));
}
(ii)
<?php
$form=$this->beginWidget(
'booster.widgets.TbActiveForm',
array(
'id' => 'inlineForm',
'type' => 'inline',
'htmlOptions' => array('class' => 'well'),
)
);
echo $form->textFieldGroup($model, 'textField');
$this->endWidget();
?>
.
: 4
, YiiBooster.
, .:)