我没有从 yii 中删除cgridview
,它显示:
错误 400,无效请求!
这是我的控制器代码
public function actionDelete($id)
{
//echo "helo";
$model=new DiscountService();
$model->deleteDService($id);
$this->render('admin',array(
'model'=>$model,
));
}
控制器访问规则中的代码
array('allow', // allow admin user to perform 'admin' and 'delete' actions
'actions'=>array('admin','delete'),
'users'=>array('@'),
//'expression'=>'Yii::app()->controller->isAdmin()',
),
请帮助寻找在 cgrid 视图中删除的解决方案,