PHP Classes

File: src/views/default/config.php

Recommend this page to a friend!
  Classes of Insolita   Yii2 Opcache   src/views/default/config.php   Download  
File: src/views/default/config.php
Role: Auxiliary script
Content type: text/plain
Description: View script
Class: Yii2 Opcache
Show and update the PHP Opcache settings
Author: By
Last change:
Date: 4 months ago
Size: 1,585 bytes
 

Contents

Class file image Download
<?php

use insolita\opcache\utils\Translator;
use
yii\grid\GridView;
use
yii\helpers\Html;

/**
 * @var \yii\web\View $this
 * @var \insolita\opcache\controllers\DefaultController $context
 * @var string $version
 * @var \yii\data\ArrayDataProvider $directives
 **/
$this->title = $version;

?>

<div class="panel panel-info">
    <div class="panel-heading">
        <div class="panel-title"><?= $version ?></div>
    </div>
    <div class="panel-body">
        <?=$this->render('_menu')?>
<?= GridView::widget(
            [
               
'summary' => '',
               
'dataProvider' => $directives,
               
'layout' => '{items}',
               
'columns' => [
                    [
                       
'attribute' => 'option',
                       
'format' => 'raw',
                       
'value' => function ($model) {
                            return
Html::tag('b', $model['option']);
                        },
                       
'header' => Translator::t('option'),
                    ],
                    [
                       
'attribute' => 'value',
                       
'format' => 'raw',
                       
'header' => Translator::t('value'),
                    ],
                    [
                       
'attribute' => 'hint',
                       
'format' => 'raw',
                       
'header' => Translator::t('hint'),
                    ],
                ],
            ]
        )
?>
</div>
</div>