作者:莎ss侄莎 | 来源:互联网 | 2023-09-05 05:15
本文由编程笔记#小编为大家整理,主要介绍了php 活动形式的例子相关的知识,希望对你有一定的参考价值。
'options' => [
'enctype' => 'multipart/form-data',
'type'=>'post',
],
]); ?>
= $form->field($model, 'slider_id')->hiddenInput(['value'=> $sliderId])->label(false); ?>
= $form->field($model, 'link')->textInput(['style'=>'width:40%;']) ?>
= $form->field($model, 'text')->label('Описание')->widget(CKEditor::className(), [
'options' => ['rows' => 3],
'preset' => 'full'
]) ?>
= $form->field($model, 'sort_order')->textInput(['style'=>'width:10%;'])->label('Сортировка') ?>
= $form->field($model, 'active')->dropDownList([0 => 'Нет', 1 => 'Да'],['style'=>'width:10%;']) ?>
$img = Html::img($model->getAttribute('image'), ['class' => 'image-column']);
echo '' . $img . '
';
?>
= Html::submitButton('Сохранить', ['class' => 'btn btn-success']) ?>