PHP Classes

File: views/backend/website/_form.php

Recommend this page to a friend!
  Classes of Gabriel Alejandro López López   Yii2 Website Module   views/backend/website/_form.php   Download  
File: views/backend/website/_form.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Yii2 Website Module
Add a content page management system to a site
Author: By
Last change:
Date: 2 months ago
Size: 502 bytes
 

Contents

Class file image Download
<?php

use yii\helpers\Html;
use
yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model daxslab\website\models\Website */
/* @var $form yii\bootstrap4\ActiveForm */
?>

<div class="website-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'url')->textInput(['maxlength' => true]) ?>

    <div class="form-group">
        <?= Html::submitButton(Yii::t('website','Save'), ['class' => 'btn btn-success']) ?>
</div>

    <?php ActiveForm::end(); ?>

</div>