<?= Html::activeLabel($model, 'password') ?>
<?= Html::activePasswordInput($model, 'password') ?>
<?= Html::error($model, 'password') ?>
or
<?= Html::activeLabel($model, 'username', ['label' => 'name']) ?>
<?= Html::activeTextInput($model, 'username') ?>
<div class="hint-block">Please enter your name</div>
<?= Html::error($model, 'username') ?>
<?php $form = ActiveForm::begin(['id' => 'contact_form']); ?>
<div class="clearfix">
<div class="form-col form-marg small fl-left">
<?= Html::activeLabel($model, 'name') ?>
<div class="field"><?= Html::activeTextInput($model, 'name', ['class'=>'form-item req']) ?></div>
<?= Html::error($model, 'name') ?>
<div class="hint-block"></div>
</div>
<div class="form-col form-marg small fl-left">
<?= Html::activeLabel($model, 'email') ?>
<div class="field"><?= Html::activeTextInput($model, 'email', ['class'=>'form-item req']) ?><div class="hint-block"></div></div>
<?= Html::error($model, 'email') ?>
<div class="hint-block"></div>
</div>
</div>
<div class="form-col">
<?= Html::activeLabel($model, 'body') ?>
<?= Html::activeTextarea($model, 'body', ['class'=>'form-item req']) ?>
<?= Html::error($model, 'body') ?>
<div class="hint-block"></div>
</div>
<div class="clearfix">
<div class="form-col form-marg small fl-left">
<?= $form->field($model, 'verifyCode')->widget(Captcha::className(), [
'captchaAction' => '/site/default/captcha',
'options' => ['class' => 'form-item req'],
'template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-9"><div class="field">{input}</div></div></div>',
]) ?>
</div>
</div>
<div class="form-btn">
<div class="field"><?= Html::submitButton(Yii::t('app', 'Отправить'), ['class' => 'btn btn-primary']) ?></div>
</div>
<?php ActiveForm::end(); ?>
$form = ActiveForm::begin([
'id' => 'login-form',
'options' => ['class' => 'form-horizontal'],
'fieldConfig' => [
'template' => '{label}<div class="col-sm-10">{input}</div><div class="col-sm-10">{error}</div>',
'labelOptions' => ['class' => 'col-sm-2 control-label'],
],
]);
Сделать контроллеры для каждой сущности?
А действия для создания новостей и редактирования (панель управления) добавить в него же или создать для всей панели управления другой контроллер?
<div id="thumbareaContent">
<img src="fotos/small_image1.jpg" width="120" height="80" alt="">
<img src="fotos/small_image2.jpg" width="120" height="80" alt="">
<img src="fotos/small_image3.jpg" width="120" height="80" alt="">
<img src="fotos/small_image4.jpg" width="120" height="80" alt="">
<img src="fotos/small_image5.jpg" width="120" height="80" alt="">
<img src="fotos/small_image6.jpg" width="120" height="80" alt="">
<img src="fotos/small_image7.jpg" width="120" height="80" alt="">
<img src="fotos/small_image8.jpg" width="120" height="80" alt="">
<img src="fotos/small_image9.jpg" width="120" height="80" alt="">
<img src="fotos/small_image10.jpg" width="120" height="80" alt="">
<img src="fotos/small_image11.jpg" width="120" height="80" alt="">
<img src="fotos/small_image12.jpg" width="120" height="80" alt="">
<img src="fotos/small_image13.jpg" width="120" height="80" alt="">
<img src="fotos/small_image14.jpg" width="120" height="80" alt="">
<img src="fotos/small_image1.jpg" width="120" height="80" alt="" id=""><img src="fotos/small_image2.jpg" width="120" height="80" alt="" id=""><img src="fotos/small_image3.jpg" width="120" height="80" alt="" id=""><img src="fotos/small_image4.jpg" width="120" height="80" alt="" id=""><img src="fotos/small_image5.jpg" width="120" height="80" alt="" id=""><img src="fotos/small_image6.jpg" width="120" height="80" alt="" id=""><img src="fotos/small_image7.jpg" width="120" height="80" alt="" id=""><img src="fotos/small_image8.jpg" width="120" height="80" alt="" id=""><img src="fotos/small_image9.jpg" width="120" height="80" alt="" id=""><img src="fotos/small_image10.jpg" width="120" height="80" alt="" id=""><img src="fotos/small_image11.jpg" width="120" height="80" alt="" id=""><img src="fotos/small_image12.jpg" width="120" height="80" alt="" id=""><img src="fotos/small_image13.jpg" width="120" height="80" alt="" id=""><img src="fotos/small_image14.jpg" width="120" height="80" alt="" id=""></div>
<ul id="thumbareaContent">
<li><img src="" alt="">
<li><img src="" alt="">
<li><img src="" alt="">
</ul>