shanghaixcn 2012-06-25 18:32:35 2639次浏览 5条回复 0 0 0
<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'message-form',
    'enableAjaxValidation'=>false,
)); 
$model->p_id='00001';
$model->author='00001';
?>
<div class="row">
    <?php echo $form->labelEx($model,'contact'); ?>
    <?php echo $form->textField($model,'contact',array('size'=>60,'maxlength'=>1000)); ?>
    <?php echo $form->error($model,'contact'); ?>
</div>
<div class="row buttons">
    <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
</div>
<?php $this->endWidget(); ?>

表单提交不了,怎么回事?

您需要登录后才可以回复。登录 | 立即注册