PHP Classes

File: views/backend/metadata-definition/index.php

Recommend this page to a friend!
  Classes of Gabriel Alejandro López López   Yii2 Website Module   views/backend/metadata-definition/index.php   Download  
File: views/backend/metadata-definition/index.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: 1 month ago
Size: 850 bytes
 

Contents

Class file image Download
<?php

use yii\helpers\Html;
use
yii\helpers\Url;
use
yii\widgets\ListView;

/* @var $this yii\web\View */
/* @var $searchModel daxslab\website\models\MetadataDefinitionSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$title = Yii::t('website','Metadata Definitions');
?>
<div class="metadata-definition-index">

    <header class="mb-4 pb-2 border-bottom">
        <h2><?= Html::encode($title) ?></h2>
    </header>

    <p><?= Html::a(Yii::t('website','New...'), ['create', 'page_type_id' => $model->id])?></p>

    <?= ListView::widget([
       
'dataProvider' => $dataProvider,
       
'layout' => Html::tag('ol', '{items}', [
               
'data-update-page' => Url::toRoute(['menu-item/update-position'])
            ]) .
"\n{pager}",
       
'itemView' => '_view',
       
'itemOptions' => ['tag' => false],
    ]);
?>
</div>