PHP Classes

File: views/backend/page/_search.php

Recommend this page to a friend!
  Classes of Gabriel Alejandro López López   Yii2 Static Pages Module   views/backend/page/_search.php   Download  
File: views/backend/page/_search.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Yii2 Static Pages Module
Generate static pages for a Yii2 Web application
Author: By
Last change:
Date: 8 days ago
Size: 1,242 bytes
 

Contents

Class file image Download
<?php

use daxslab\staticpages\Module;
use
yii\helpers\Html;
use
yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model daxslab\staticpages\backend\models\PageSearch */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="page-search">

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

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

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

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

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

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

    <?php // echo $form->field($model, 'body') ?>

    <?php // echo $form->field($model, 'image') ?>

    <?php // echo $form->field($model, 'keywords') ?>

    <?php // echo $form->field($model, 'parent_id') ?>

    <?php // echo $form->field($model, 'created_at') ?>

    <?php // echo $form->field($model, 'update_at') ?>

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

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

</div>