Php 时间不在列表yii框架错误中
我对yii框架有问题。当我为ins选择时:Php 时间不在列表yii框架错误中,php,yii,Php,Yii,我对yii框架有问题。当我为ins选择时: 20.01.2017 00:57 它给出了一个错误,即 时间不在清单上 开始日期和时间:* 显示此字段的验证规则。很抱歉,您的意思是什么? <?php echo $form->errorSummary($model); ?> <div class="row"> <label>Starting Date and Time: <span class="required">*</sp
20.01.2017 00:57
它给出了一个错误,即
时间不在清单上
开始日期和时间:*
显示此字段的验证规则。很抱歉,您的意思是什么?
<?php echo $form->errorSummary($model); ?>
<div class="row">
<label>Starting Date and Time: <span class="required">*</span></label>
<?php
$this->widget('ext.timepicker.EJuiDateTimePicker',array(
'model'=>$model,
'attribute'=>'time',
'language'=>'ru',
'options'=>array(
'timeFormat' => 'hh:mm',
'changeMonth' => false,
'changeYear' => false,
),
'htmlOptions'=>array(
'class'=>'rl-text',
'autocomplete'=>'off',
),
));
?>
<?php echo $form->error($model,'time'); ?>
</div>