سلام
به نظر من که فقط به html نیاز است
<?php
$this->title = 'پروفایل';
?>
<div class="col-xs-8 col-xs-offset-2" style="direction:rtl; text-align: right;">
<br/>
<div class="row">
<!--Middle Part Start-->
<div class="col-sm-9" id="content">
<h1 class="title"><?php echo $this->title;?></h1>
<?= GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\grid\SerialColumn'], 'id', 'title', 'content:ntext', ['attribute' => 'cat_id', 'value' => 'cat.title', ], 'price',
// 'leed:ntext',
['attribute' => 'image', 'format' => 'html', 'value' => function($data) {
if (empty($data['image'])) {
$image = 'default.jpg';
} else {
$image = $data['image'];
}
if (file_exists(\Yii::$app -> basePath . \Yii::$app -> params['path']['advertise_upload'] . $image)) {
$path = \Yii::$app -> homeUrl . \Yii::$app -> params['path']['advertise'] . $image;
} else {
$path = \Yii::$app -> homeUrl . \Yii::$app -> params['path']['advertise'] . 'default.jpg';
}
$path = \Yii::$app -> homeUrl . \Yii::$app -> params['path']['advertise'] . $image;
return Html::img($path, ['width' => '100px', 'height' => '100px']);
}, ],
// 'created_at',
// 'updated_at',
// 'gallery_id',
[
'class' => 'yii\grid\ActionColumn',
'template' => '{pupolar} {special} {new} {view} {update} {delete}',
'buttons' => ['new' => function($url) {
return Html::a('new', $url, ['title' => 'new', 'data-pjax' => '0', ]);
},
'pupolar' => function($url) {
return Html::a('pupolar', $url, ['title' => 'pupolar', 'data-pjax' => '0', ]);
},
'special' => function($url) {
return Html::a('special', $url, ['title' => 'special', 'data-pjax' => '0', ]);
},
],
],
],
]);
?>
</div>
<!--Middle Part End -->
<!--Right Part Start -->
<aside id="column-right" class="col-sm-3 hidden-xs">
<h3 class="subtitle">منوی کاربری</h3>
<div class="list-group">
<ul class="list-item">
<li><a href="<?php echo Yii::$app->urlManager->createUrl(['site/profile']);?>">پروفایل</a></li>
<li><a href="login.html">مشخصات</a></li>
<li><a href="register.html">تغییر رمز عبور</a></li>
<li><a href="<?php echo Yii::$app->urlManager->createUrl(['site/orderlist']);?>">لیست سفارشات</a></li>
<li><a href="<?php echo Yii::$app->urlManager->createUrl(['site/ticket']);?>">ارسال تیکت</a></li>
<li><a href="<?php echo Yii::$app->urlManager->createUrl(['site/allticket']);?>">تیکت ها </a></li>
</ul>
</div>
</aside>
<!--Right Part End -->
</div>
</div>