PHP Classes

File: views/test/_search.php

Recommend this page to a friend!
  Classes of Uldis Nelsons  >  YII2 Framework PHP Init  >  views/test/_search.php  >  Download  
File: views/test/_search.php
Role: Example script
Content type: text/plain
Description: Example script
Class: YII2 Framework PHP Init
Create a project based on the YII2 from template
Author: By
Last change:
Date: 2 months ago
Size: 770 bytes
 

Contents

Class file image Download
<?php

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

/**
* @var yii\web\View $this
* @var app\models\TestSearch $model
* @var yii\widgets\ActiveForm $form
*/
?>

<div class="test-search">

    <?php $form = ActiveForm::begin([
   
'action' => ['index'],
   
'method' => 'get',
    ]);
?>

            <?= $form->field($model, 'id') ?>

        <?= $form->field($model, 'name') ?>

        <?= $form->field($model, 'description') ?>

        <?= $form->field($model, 'createdate') ?>

        <?= $form->field($model, 'update_dt') ?>

    <div class="form-group">
        <?= Html::submitButton(Yii::t('app', 'Search'), ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton(Yii::t('app', 'Reset'), ['class' => 'btn btn-default']) ?>
</div>

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

</div>

For more information send a message to info at phpclasses dot org.