首页 > 代码库 > yii表单

yii表单

<?php $form = $this->beginWidget(‘CActiveForm‘,array(		‘enableClientValidation‘=> true,		‘clientOptions‘ => array(				‘validateOnsubmit‘	=> true		),)) ?>

  


<?php echo $form->labelEx($categoryModel, ‘cname‘) ?><?php echo $form->textField($categoryModel, ‘cname‘) ?>//文本域<?php echo $form->error($categoryModel, ‘cname‘) ?>

  

<?php $this->endWidget() ?>

yii表单