for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace hipanel\modules\hosting\menus;
use hiqdev\menumanager\Menu;
use Yii;
class RequestActionsMenu extends Menu
{
public $model;
public function items()
return [
'view' => [
'label' => Yii::t('hipanel', 'View'),
'icon' => 'fa-info',
'url' => ['@request/view', 'id' => $this->model->id],
],
'delete' => [
'label' => Yii::t('hipanel', 'Delete'),
'icon' => 'fa-trash-o',
'url' => ['@request/delete', 'id' => $this->model->id],
'linkOptions' => [
'data' => [
'confirm' => Yii::t('hipanel', 'Are you sure you want to delete this item?'),
'method' => 'post',
'pjax' => '0',
]
];
}