Exemplo n.º 1
0
<?php

use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\modules\category\models\Category */
$this->title = 'Изменение комментария';
yii\helpers\Url::remember(Yii::$app->request->referrer);
?>
<div class="header">
	

    <?php 
echo $this->render('_form', ['model' => $model]);
?>

</div>
Exemplo n.º 2
0
<?php

use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\UserLogSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'User Logs';
$this->params['breadcrumbs'][] = $this->title;
yii\helpers\Url::remember();
?>
<div class="user-log-index">

<!--    <h1><?php 
echo Html::encode($this->title);
?>
</h1>
    <?php 
// echo $this->render('_search', ['model' => $searchModel]);
?>

    <p>
        <?php 
echo Html::a('Create User Log', ['create'], ['class' => 'btn btn-success']);
?>
    </p>-->

    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'username', 'action', 'object_class', 'object_pk', ['attribute' => 'created_at', 'format' => 'raw', 'value' => function ($model) {
    return date('Y-m-d H:i', $model->created_at);
}], ['attribute' => 'is_success', 'format' => 'raw', 'value' => function ($model) {