本文整理汇总了PHP中yii\grid\DataColumn::className方法的典型用法代码示例。如果您正苦于以下问题:PHP DataColumn::className方法的具体用法?PHP DataColumn::className怎么用?PHP DataColumn::className使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类yii\grid\DataColumn
的用法示例。
在下文中一共展示了DataColumn::className方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: actions
/**
* @inheritdoc
*/
public function actions()
{
return ArrayHelper::merge(parent::actions(), ['index' => ['columns' => [['attribute' => 'status', 'class' => \yii\grid\DataColumn::className(), 'filter' => \skeeks\cms\comments2\models\Comments2Message::$statuses, 'format' => 'raw', 'value' => function (\skeeks\cms\comments2\models\Comments2Message $model) {
if ($model->status == \skeeks\cms\comments2\models\Comments2Message::STATUS_NEW) {
$class = "default";
} else {
if ($model->status == \skeeks\cms\comments2\models\Comments2Message::STATUS_PROCESSED) {
$class = "warning";
} else {
if ($model->status == \skeeks\cms\comments2\models\Comments2Message::STATUS_CANCELED) {
$class = "danger";
} else {
if ($model->status == \skeeks\cms\comments2\models\Comments2Message::STATUS_ALLOWED) {
$class = "success";
}
}
}
}
return '<span class="label label-' . $class . '">' . \yii\helpers\ArrayHelper::getValue(\skeeks\cms\comments2\models\Comments2Message::$statuses, $model->status) . '</span>';
}], ['class' => \skeeks\cms\grid\CreatedAtColumn::className(), 'label' => 'Добавлен'], ['class' => \skeeks\cms\grid\CreatedByColumn::className()], ['attribute' => 'site_code', 'class' => \yii\grid\DataColumn::className(), 'filter' => \yii\helpers\ArrayHelper::map(\skeeks\cms\models\CmsSite::find()->all(), 'code', 'name'), 'value' => function (\skeeks\cms\comments2\models\Comments2Message $model) {
return $model->site->name;
}], ['attribute' => 'element_id', 'relation' => 'element', 'class' => \skeeks\cms\grid\CmsContentElementColumn::className()], ['filter' => \yii\helpers\ArrayHelper::map(\skeeks\cms\models\CmsContent::find()->all(), 'id', 'name'), 'attribute' => 'content_id', 'class' => \yii\grid\DataColumn::className(), 'value' => function (\skeeks\cms\comments2\models\Comments2Message $model) {
return $model->element->cmsContent->name;
}]]], "status-allowed-multi" => ['class' => AdminMultiModelEditAction::className(), "name" => \skeeks\cms\comments2\Module::t('app', 'Approve'), "eachCallback" => [$this, 'eachMultiStatusAllowed']], "status-canceled-multi" => ['class' => AdminMultiModelEditAction::className(), "name" => \skeeks\cms\comments2\Module::t('app', 'Reject'), "eachCallback" => [$this, 'eachMultiStatusCanceled']], "status-processed-multi" => ['class' => AdminMultiModelEditAction::className(), "name" => \skeeks\cms\comments2\Module::t('app', 'In progress'), "eachCallback" => [$this, 'eachMultiStatusProcessed']]]);
}
示例2: createDataColumn
/**
* @see \yii\grid\GridView::createDataColumn()
* @inheritdoc
*/
protected function createDataColumn($text)
{
if (!preg_match('/^([^:]+)(:(\\w*))?(:(.*))?$/', $text, $matches)) {
throw new InvalidConfigException('The column must be specified in the format of "attribute", "attribute:format" or "attribute:format:label"');
}
return Yii::createObject(['class' => $this->dataColumnClass ?: DataColumn::className(), 'grid' => $this, 'attribute' => $matches[1], 'format' => isset($matches[3]) ? $matches[3] : 'text', 'label' => isset($matches[5]) ? $matches[5] : null]);
}
示例3: actions
/**
* @inheritdoc
*/
public function actions()
{
return ArrayHelper::merge(parent::actions(), ['index' => ["columns" => [['class' => CreatedAtColumn::className()], 'id', ['class' => DataColumn::className(), 'attribute' => 'status_code', 'format' => 'raw', 'filter' => ArrayHelper::map(ShopOrderStatus::find()->all(), 'code', 'name'), 'value' => function (ShopOrder $order) {
return Html::label($order->status->name, null, ['style' => "background: {$order->status->color}", 'class' => "label"]) . "<br />" . Html::tag("small", \Yii::$app->formatter->asDatetime($order->status_at) . " (" . \Yii::$app->formatter->asRelativeTime($order->status_at) . ")");
}], ['class' => BooleanColumn::className(), 'attribute' => 'payed', 'format' => 'raw'], ['class' => DataColumn::className(), 'attribute' => "canceled", 'format' => "raw", 'filter' => ['Y' => \Yii::t('app', 'Yes'), 'N' => \Yii::t('app', 'No')], 'value' => function (ShopOrder $shopOrder) {
return $shopOrder->canceled == "Y" ? \Yii::t('app', 'Yes') : \Yii::t('app', 'No');
}], ['class' => DataColumn::className(), 'attribute' => "user_id", 'label' => \skeeks\cms\shop\Module::t('app', 'Buyer'), 'format' => "raw", 'value' => function (ShopOrder $shopOrder) {
return (new \skeeks\cms\shop\widgets\AdminBuyerUserWidget(['user' => $shopOrder->user]))->run();
}], ['class' => DataColumn::className(), 'filter' => false, 'format' => 'raw', 'label' => \skeeks\cms\shop\Module::t('app', 'Good'), 'value' => function (ShopOrder $model) {
if ($model->shopBaskets) {
$result = [];
foreach ($model->shopBaskets as $shopBasket) {
$money = \Yii::$app->money->intlFormatter()->format($shopBasket->money);
$result[] = Html::a($shopBasket->name, $shopBasket->product->cmsContentElement->url, ['target' => '_blank']) . <<<HTML
— {$shopBasket->quantity} {$shopBasket->measure_name}
HTML;
}
return implode('<hr style="margin: 0px;"/>', $result);
}
}], ['class' => DataColumn::className(), 'format' => 'raw', 'attribute' => 'price', 'label' => \skeeks\cms\shop\Module::t('app', 'Sum'), 'value' => function (ShopOrder $model) {
return \Yii::$app->money->intlFormatter()->format($model->money);
}], ['class' => DataColumn::className(), 'filter' => ArrayHelper::map(CmsSite::find()->active()->all(), 'id', 'name'), 'attribute' => 'site_id', 'format' => 'raw', 'visible' => false, 'label' => \skeeks\cms\shop\Module::t('app', 'Site'), 'value' => function (ShopOrder $model) {
return $model->site->name . " [{$model->site->code}]";
}]]], "view" => ['class' => AdminOneModelEditAction::className(), "name" => \Yii::t('app', "Информация"), "icon" => "glyphicon glyphicon-eye-open", "priority" => 5, "callback" => [$this, 'view']]]);
}
示例4: actions
/**
* @inheritdoc
*/
public function actions()
{
return ArrayHelper::merge(parent::actions(), ['index' => ["columns" => ['value', ['class' => DataColumn::className(), 'value' => function (ShopTaxRate $model) {
return $model->tax->name . " (" . $model->tax->site->name . ")";
}, 'attribute' => "tax_id"], ['class' => DataColumn::className(), 'value' => function (ShopTaxRate $model) {
return $model->personType->name;
}, 'attribute' => "person_type_id"], ['class' => BooleanColumn::className(), 'attribute' => "is_in_price"], ['class' => BooleanColumn::className(), 'attribute' => "active"], ['attribute' => "priority"]]]]);
}
示例5: actions
/**
* @inheritdoc
*/
public function actions()
{
return ArrayHelper::merge(parent::actions(), ['index' => ["gridConfig" => ['settingsData' => ['order' => SORT_ASC, 'orderBy' => "priority"]], "columns" => ['name', 'priority', ['class' => DataColumn::className(), 'attribute' => "shopPaySystems", 'filter' => false, 'value' => function (ShopDelivery $model) {
return implode(", ", ArrayHelper::map($model->shopPaySystems, 'id', 'name'));
}], ['class' => DataColumn::className(), 'attribute' => "price", 'format' => 'raw', 'filter' => false, 'value' => function (ShopDelivery $model) {
return \Yii::$app->money->intlFormatter()->format($model->money);
}], ['class' => BooleanColumn::className(), 'attribute' => "active"]]]]);
}
示例6: actions
/**
* @inheritdoc
*/
public function actions()
{
return ArrayHelper::merge(parent::actions(), ['index' => ["columns" => [['class' => DataColumn::className(), 'attribute' => 'name', 'format' => 'raw', 'value' => function (KladrLocation $model) {
if ($model->parent_id) {
return $model->fullName . " <small>(" . implode(", ", ArrayHelper::map($model->parents, 'id', 'fullName')) . ") </small>";
} else {
return $model->fullName;
}
}], ['class' => DataColumn::className(), 'attribute' => 'type', 'filter' => KladrLocation::possibleTypes(), 'value' => function (KladrLocation $model) {
return $model->typeName;
}]]], 'update-database' => ["class" => AdminAction::className(), "name" => "Импорт местоположений", "icon" => "glyphicon glyphicon-paperclip", "callback" => [$this, 'actionUpdateDatabase']]]);
}
示例7: actions
/**
* @inheritdoc
*/
public function actions()
{
return ArrayHelper::merge(parent::actions(), ['index' => ["dataProviderCallback" => function (ActiveDataProvider $activeDataProvider) {
$activeDataProvider->query->andWhere(['type' => ShopDiscount::TYPE_DEFAULT]);
}, "gridConfig" => ['settingsData' => ['order' => SORT_ASC, 'orderBy' => "priority"]], "columns" => ['id', ['attribute' => 'name'], ['attribute' => 'value', 'class' => DataColumn::className(), 'value' => function (ShopDiscount $shopDiscount) {
if ($shopDiscount->value_type == ShopDiscount::VALUE_TYPE_P) {
return \Yii::$app->formatter->asPercent($shopDiscount->value / 100);
} else {
$money = Money::fromString((string) $shopDiscount->value, $shopDiscount->currency_code);
return \Yii::$app->money->intlFormatter()->format($money);
}
}], ['attribute' => 'active', 'class' => BooleanColumn::className()], ['attribute' => 'active_from', 'class' => DateTimeColumnData::className()], ['attribute' => 'active_to', 'class' => DateTimeColumnData::className()], ['class' => UpdatedByColumn::className()], ['class' => UpdatedAtColumn::className()], 'priority']]]);
}
示例8: actions
/**
* @inheritdoc
*/
public function actions()
{
return ArrayHelper::merge(parent::actions(), ['create' => ['visible' => false], 'update' => ['visible' => false], 'system' => ['visible' => false], 'index' => ["columns" => [['class' => CreatedAtColumn::className(), 'label' => \skeeks\cms\shop\Module::t('app', 'Date views')], ['class' => DataColumn::className(), 'label' => \skeeks\cms\shop\Module::t('app', 'User'), 'value' => function (ShopViewedProduct $shopViewedProduct) {
if ($shopViewedProduct->shopFuser->user) {
return $shopViewedProduct->shopFuser->user->displayName;
}
return \skeeks\cms\shop\Module::t('app', 'Not authorized') . " [{$shopViewedProduct->shopFuser->id}]";
}], ['class' => DataColumn::className(), 'label' => \skeeks\cms\shop\Module::t('app', 'Good'), 'value' => function (ShopViewedProduct $shopViewedProduct) {
if ($shopViewedProduct->shopProduct) {
return $shopViewedProduct->shopProduct->cmsContentElement->name;
}
return null;
}]]]]);
}
示例9: actionIndex
public function actionIndex()
{
$meta['title'] = $this->pageTitle;
$meta['description'] = 'List all media';
$meta['pageIcon'] = $this->pageIcon;
$module = MediaModule::getInstance();
if (!is_null($module->adminLayout)) {
$this->layout = $module->adminLayout;
}
$searchModel = new MediaSearch();
$dataProvider = $searchModel->search(Yii::$app->request->getQueryParams());
$getColumns = [['class' => 'yii\\grid\\SerialColumn'], ['class' => DataColumn::className(), 'attribute' => 'title', 'format' => 'text', 'label' => 'Title'], 'create_time', ['class' => DataColumn::className(), 'attribute' => 'statusLabel', 'format' => 'text', 'label' => 'Status'], ['class' => DataColumn::className(), 'attribute' => 'uploadedTo', 'format' => 'html', 'label' => 'Uploaded to'], ['class' => 'backend\\components\\ActionColumn']];
return $this->render($module->adminView, ['meta' => $meta, 'dataProvider' => $dataProvider, 'getColumns' => $getColumns]);
}
示例10: actions
/**
* @inheritdoc
*/
public function actions()
{
return ArrayHelper::merge(parent::actions(), ['index' => ["dataProviderCallback" => function (ActiveDataProvider $dataProvider) {
$query = $dataProvider->query;
/**
* @var \yii\db\ActiveQuery $query
*/
//$query->select(['app_company.*', 'count(`app_company_officer_user`.`id`) as countOfficer']);
$query->groupBy([CmsUser::tableName() . '.id']);
$query->innerJoin(ShopBuyer::tableName(), '`shop_buyer`.`cms_user_id` = `cms_user`.`id`');
}, "columns" => [['class' => UserColumnData::className(), 'attribute' => 'id', 'label' => \skeeks\cms\shop\Module::t('app', 'Buyer')], 'email', 'phone', ['class' => DateTimeColumnData::className(), 'attribute' => 'created_at', 'label' => \skeeks\cms\shop\Module::t('app', 'Date of registration')], ['class' => DataColumn::className(), 'label' => \skeeks\cms\shop\Module::t('app', 'Date of last order'), 'value' => function (CmsUser $model) {
if ($order = ShopOrder::find()->where(['user_id' => $model->id])->orderBy(['created_at' => SORT_DESC])->one()) {
return \Yii::$app->formatter->asDatetime($order->created_at);
}
return null;
}], ['class' => DataColumn::className(), 'label' => \skeeks\cms\shop\Module::t('app', 'The amount paid orders'), 'value' => function (CmsUser $model) {
return ShopOrder::find()->where(['user_id' => $model->id, 'payed' => Cms::BOOL_Y])->count();
}]]]]);
}
示例11: actions
/**
* @inheritdoc
*/
public function actions()
{
return ArrayHelper::merge(parent::actions(), ['index' => ["gridConfig" => [], "columns" => [['class' => \yii\grid\SerialColumn::className()], ['class' => \yii\grid\DataColumn::className(), 'attribute' => 'name', 'format' => 'raw', 'value' => function (\skeeks\cms\shop\models\ShopBasket $shopBasket) {
$widget = new \skeeks\cms\modules\admin\widgets\AdminImagePreviewWidget(['image' => $shopBasket->product->cmsContentElement->image]);
return $widget->run();
}], ['class' => \yii\grid\DataColumn::className(), 'attribute' => 'name', 'format' => 'raw', 'value' => function (\skeeks\cms\shop\models\ShopBasket $shopBasket) {
if ($shopBasket->product) {
return Html::a($shopBasket->name, $shopBasket->product->cmsContentElement->url, ['target' => '_blank', 'titla' => \Yii::t('skeeks/shop/app', 'Watch Online'), 'data-pjax' => 0]);
} else {
return $shopBasket->name;
}
}], ['class' => \yii\grid\DataColumn::className(), 'attribute' => 'quantity', 'value' => function (\skeeks\cms\shop\models\ShopBasket $shopBasket) {
return $shopBasket->quantity . " " . $shopBasket->measure_name;
}], ['class' => \yii\grid\DataColumn::className(), 'label' => \Yii::t('skeeks/shop/app', 'Price'), 'attribute' => 'price', 'format' => 'raw', 'value' => function (\skeeks\cms\shop\models\ShopBasket $shopBasket) {
if ($shopBasket->discount_value) {
return "<span style='text-decoration: line-through;'>" . \Yii::$app->money->intlFormatter()->format($shopBasket->moneyOriginal) . "</span><br />" . Html::tag('small', $shopBasket->notes) . "<br />" . \Yii::$app->money->intlFormatter()->format($shopBasket->money) . "<br />" . Html::tag('small', \Yii::t('skeeks/shop/app', 'Discount') . ": " . $shopBasket->discount_value);
} else {
return \Yii::$app->money->intlFormatter()->format($shopBasket->money) . "<br />" . Html::tag('small', $shopBasket->notes);
}
}], ['class' => \yii\grid\DataColumn::className(), 'label' => \Yii::t('skeeks/shop/app', 'Sum'), 'attribute' => 'price', 'format' => 'raw', 'value' => function (\skeeks\cms\shop\models\ShopBasket $shopBasket) {
return \Yii::$app->money->intlFormatter()->format($shopBasket->money->multiply($shopBasket->quantity));
}]]]]);
}
示例12: function
* @date 02.06.2015
*/
/* @var $this yii\web\View */
/* @var $searchModel \skeeks\cms\models\Search */
/* @var $dataProvider yii\data\ActiveDataProvider */
$query = $dataProvider->query;
$query->groupBy([\skeeks\cms\models\CmsUser::tableName() . '.id']);
$query->leftJoin(\skeeks\cms\shop\models\ShopOrder::tableName(), '`shop_order`.`user_id` = `cms_user`.`id`');
?>
<? $pjax = \skeeks\cms\modules\admin\widgets\Pjax::begin(); ?>
<?php
echo $this->render('_search', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
?>
<?php
echo \skeeks\cms\modules\admin\widgets\GridViewStandart::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'pjax' => $pjax, 'adminController' => \Yii::$app->controller, 'columns' => [['class' => \skeeks\cms\grid\UserColumnData::className(), 'attribute' => 'id', 'label' => \Yii::t('skeeks/shop/app', 'Buyer')], 'email', 'phone', ['class' => \skeeks\cms\grid\DateTimeColumnData::className(), 'attribute' => 'created_at', 'label' => \Yii::t('skeeks/shop/app', 'Date of registration')], ['class' => \yii\grid\DataColumn::className(), 'label' => \Yii::t('skeeks/shop/app', 'Date of last order'), 'value' => function (\skeeks\cms\models\CmsUser $model) {
if ($order = \skeeks\cms\shop\models\ShopOrder::find()->where(['user_id' => $model->id])->orderBy(['created_at' => SORT_DESC])->one()) {
return \Yii::$app->formatter->asDatetime($order->created_at);
}
return null;
}], ['class' => \yii\grid\DataColumn::className(), 'label' => \Yii::t('skeeks/shop/app', 'The amount paid orders'), 'value' => function (\skeeks\cms\models\CmsUser $model) {
return \skeeks\cms\shop\models\ShopOrder::find()->where(['user_id' => $model->id, 'payed' => \skeeks\cms\components\Cms::BOOL_Y])->count();
}], ['class' => \yii\grid\DataColumn::className(), 'label' => \Yii::t('skeeks/shop/app', 'The amount paid orders'), 'value' => function (\skeeks\cms\models\CmsUser $model) {
return \skeeks\cms\shop\models\ShopOrder::find()->where(['user_id' => $model->id, 'payed' => \skeeks\cms\components\Cms::BOOL_Y])->count();
}]]]);
?>
<? $pjax::end(); ?>
示例13: function
use yii\helpers\Url;
use yii\grid\DataColumn;
use app\models\Kek;
/* @var $this yii\web\View */
/* @var $searchModel app\models\KekSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Kierunkowe efekty kształcenia';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="kek-index">
<button type="button" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#myModal">
Dodaj kierunkowy efekt kształcenia
</button>
<?php
echo GridView::widget(['dataProvider' => $dataProvider, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'symbol', 'opis:ntext', ['class' => DataColumn::className(), 'attribute' => 'kategoria', 'value' => function ($model) {
return Kek::categoryName[$model->kategoria];
}], ['class' => 'yii\\grid\\ActionColumn', 'controller' => 'kek', 'template' => '{del}', 'buttons' => ['del' => function ($url, $model, $key) {
$icon = '<span class="glyphicon glyphicon-trash"></span>';
$label = 'Usun';
$url = Url::to(["/kek/delete", 'id' => $model->id, 'kid' => $model->kierunekStudiow_id]);
return Yii::$app->user->identity->groupId == 'admin' ? Html::a($icon, $url, ['title' => $label]) : '';
}]]]]);
?>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
示例14: Species
use yii\grid\DataColumn;
$speciesModel = new Species();
$searchModel = new SpeciesSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
?>
<h1><?php
echo Yii::t('app', 'Alle soorten');
?>
</h1>
<?php
echo Html::a(Yii::t('app', 'Toevoegen'), Url::toRoute('species/form'), ['class' => 'btn btn-successbtn btn-success']);
?>
<br><br>
<?php
DataColumn::className();
?>
<?php
echo DataTables::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['attribute' => 'taxon', 'value' => function ($model, $key, $index, $column) {
return $model->getTaxonomy($model->taxon);
}], ['attribute' => 'genus', 'format' => 'html', 'value' => function ($model, $key, $index, $column) {
return Html::a($model->genus, Url::toRoute('species/detail/' . $model->id));
}], ['attribute' => 'speceus', 'format' => 'html', 'value' => function ($model, $key, $index, $column) {
return Html::a($model->speceus, Url::toRoute('species/detail/' . $model->id));
}], ['attribute' => 'dutch', 'format' => 'html', 'value' => function ($model, $key, $index, $column) {
return Html::a($model->dutch, Url::toRoute('species/detail/' . $model->id));
}], ['attribute' => 'url', 'format' => 'html', 'value' => function ($model, $key, $index, $column) {
return Html::a($model->url, $model->url);
}]], 'clientOptions' => ['info' => false, 'responsive' => true, 'dom' => 'lfTrtip', 'tableTools' => ['aButtons' => [['sExtends' => 'copy', 'sButtonText' => Yii::t('app', 'Copy to clipboard')], ['sExtends' => 'csv', 'sButtonText' => Yii::t('app', 'Save to CSV')], ['sExtends' => 'xls', 'oSelectorOpts' => ['page' => 'current']], ['sExtends' => 'pdf', 'sButtonText' => Yii::t('app', 'Save to PDF')], ['sExtends' => 'print', 'sButtonText' => Yii::t('app', 'Print')]]]]]);
示例15: foreach
if (!$model->cmsTree) {
return null;
}
$path = [];
if ($model->cmsTree->parents) {
foreach ($model->cmsTree->parents as $parent) {
if ($parent->isRoot()) {
$path[] = "[" . $parent->site->name . "] " . $parent->name;
} else {
$path[] = $parent->name;
}
}
}
$path = implode(" / ", $path);
return "<small><a href='{$model->cmsTree->url}' target='_blank' data-pjax='0'>{$path} / {$model->cmsTree->name}</a></small>";
}, 'format' => 'raw', 'filter' => \skeeks\cms\helpers\TreeOptions::getAllMultiOptions(), 'attribute' => 'tree_id'], ['class' => \yii\grid\DataColumn::className(), 'value' => function (\skeeks\cms\models\CmsContentElement $model) {
$result = [];
if ($model->cmsContentElementTrees) {
foreach ($model->cmsContentElementTrees as $contentElementTree) {
$site = $contentElementTree->tree->root->site;
$result[] = "<small><a href='{$contentElementTree->tree->url}' target='_blank' data-pjax='0'>[{$site->name}]/.../{$contentElementTree->tree->name}</a></small>";
}
}
return implode('<br />', $result);
}, 'format' => 'raw', 'label' => \Yii::t('app', 'Additional sections')], ['attribute' => 'active', 'class' => \skeeks\cms\grid\BooleanColumn::className()], ['class' => \yii\grid\DataColumn::className(), 'value' => function (\skeeks\cms\models\CmsContentElement $model) {
return \yii\helpers\Html::a('<i class="glyphicon glyphicon-arrow-right"></i>', $model->absoluteUrl, ['target' => '_blank', 'title' => \Yii::t('app', 'Watch to site (opens new window)'), 'data-pjax' => '0', 'class' => 'btn btn-default btn-sm']);
}, 'format' => 'raw']];
?>