Skip to content

Instantly share code, notes, and snippets.

@moplin
Created March 6, 2018 16:34
Show Gist options
  • Save moplin/0c43c38bf0b42d74a3a13a51e4356edf to your computer and use it in GitHub Desktop.
Save moplin/0c43c38bf0b42d74a3a13a51e4356edf to your computer and use it in GitHub Desktop.
class BannerImageController extends Controller
{
public function actions()
{
return ArrayHelper::merge(parent::actions(), [
'link' => [
'class' => EditableColumnAction::className(),
'modelClass' => CexBannerImg::className(),
'outputValue' => function ($model, $attribute, $key, $index) {
return $model->$attribute;
},
'outputMessage' => function($model, $attribute, $key, $index) {
return '';
},
]
]);
}
public function actionOther()
{
return 'other';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment