IlhamActionColumn
Yii2-admin integration Action Column by User, (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require ilhammalik11/ilhammalik "*"
or add, (*4)
"ilhammalik/ilhammalik": "*"
to the require section of your composer.json
file., (*5)
Usage
Once the extension is installed, simply use it in your code by :, (*6)
Add Code Into to, (*7)
common\config\bootstrap.php
create defendensi Injection, (*8)
Yii::$container->set('yii\grid\ActionColumn', [
'class' => 'common\components\ActionColumn',
'visibleCallback' => function($name) {
return \Yii::$app->user->can($name);
},
]);