beginWidget('CActiveForm', array(
'id'=>'login-form',
'enableClientValidation'=>true,
'clientOptions'=>array(
'validateOnSubmit'=>true,
),
)); ?>
labelEx($model,'用户名'); ?>
textField($model,'username'); ?>
error($model,'username'); ?>
labelEx($model,'密码'); ?>
passwordField($model,'password'); ?>
error($model,'password'); ?>
checkBox($model,'rememberMe'); ?>
label($model,'记住我'); ?>
error($model,'rememberMe'); ?>
endWidget(); ?>