Hi,
question 1:
Delete or update action success, return the tip message, how to display?
I use buttons detailview to return the display message.
Yii::$app->session->setFlash('kv-detail-success', 'delete successfully');
question 2:
dynagrid How to customize the parameters to pass?
I use the following method, controller can not accept the parameters
[ 'class'=>'kartik\grid\ActionColumn', 'dropdown'=>false, 'order'=>DynaGrid::ORDER_FIX_RIGHT, 'deleteOptions'=>[ 'title'=>'删除', 'params' => ['customer_kv'=>'ok'], 'data-method' => 'post', ], ],
Hi, question 1: Delete or update action success, return the tip message, how to display? I use buttons detailview to return the display message.
Yii::$app->session->setFlash('kv-detail-success', 'delete successfully');
question 2: dynagrid How to customize the parameters to pass? I use the following method, controller can not accept the parameters
[ 'class'=>'kartik\grid\ActionColumn', 'dropdown'=>false, 'order'=>DynaGrid::ORDER_FIX_RIGHT, 'deleteOptions'=>[ 'title'=>'删除', 'params' => ['customer_kv'=>'ok'], 'data-method' => 'post', ], ],