xczizz 2016-03-14 15:42:45 4805次浏览 2条回复 0 0 0
'delete' => function($url,$model,$key){
      return Html::a('<span class="glyphicon glyphicon-trash"></span>','/index.php?=user/delete&id='.$model->id,['title'=>Yii::t('yii', 'Delete'),'aria-label' => Yii::t('yii', 'Delete'),'data-method' => 'post',] );

现在我在控制器里有一个返回值,我需要根据这个返回值来做下一步的处理,用什么方法来获取这个值?

public function actionDelete($id)
    {
        $this->findModel($id)->delete();

        return 1;
    }
您需要登录后才可以回复。登录 | 立即注册