$model, 'attributes' => [ 'id', 'title', 'sub_title', 'summary', [ 'attribute' => 'thumb', 'format' => 'raw', 'value' => function($model){ return ""; } ], 'seo_title', 'seo_keywords', 'seo_description', [ 'attribute' => 'status', 'value' => function($model){ return Constants::getStatusItems($model->status); } ], 'sort', 'author_id', 'author_name', 'scan_count', 'comment_count', [ 'attribute' => 'can_comment', 'value' => function($model){ return Constants::getYesNoItems($model->can_comment); } ], [ 'attribute' => 'visibility', 'value' => function($model){ return Constants::getYesNoItems($model->visibility); } ], [ 'format' => 'raw', 'attribute' => 'content', 'value' => function($model){ /** @var common\models\Article $model */ return $model->articleContent->content; } ], 'created_at:datetime', 'updated_at:datetime', ], ]) ?>