Php 未删除YII权限模块角色

Php 未删除YII权限模块角色,php,yii,Php,Yii,我的角色视图代码是 <?php $this->widget('zii.widgets.grid.CGridView', array( 'dataProvider'=>$dataProvider, 'template'=>'{items}', 'emptyText'=>Rights::t('core', 'No roles found.'), 'htmlOptions'=>array('class'

我的角色视图代码是

<?php $this->widget('zii.widgets.grid.CGridView', array(
        'dataProvider'=>$dataProvider,
        'template'=>'{items}',
        'emptyText'=>Rights::t('core', 'No roles found.'),
        'htmlOptions'=>array('class'=>'grid-view role-table'),
        'itemsCssClass'=>'table table-striped',
        'columns'=>array(
            array(
                'name'=>'name',
                'header'=>Rights::t('core', 'Name'),
                'type'=>'raw',
                'htmlOptions'=>array('class'=>'name-column'),
                'value'=>'$data->getGridNameLink()',
            ),
            array(
                'name'=>'description',
                'header'=>Rights::t('core', 'Description'),
                'type'=>'raw',
                'htmlOptions'=>array('class'=>'description-column'),
            ),
            /*
            array(
                'name'=>'bizRule',
                'header'=>Rights::t('core', 'Business rule'),
                'type'=>'raw',
                'htmlOptions'=>array('class'=>'bizrule-column'),
                'visible'=>Rights::module()->enableBizRule===true,
            ),
            array(
                'name'=>'data',
                'header'=>Rights::t('core', 'Data'),
                'type'=>'raw',
                'htmlOptions'=>array('class'=>'data-column'),
                'visible'=>Rights::module()->enableBizRuleData===true,
            ),
            */
            array(
                'header'=>'&nbsp;',
                'type'=>'raw',
                'htmlOptions'=>array('class'=>'actions-column'),
                'value'=>'$data->getDeleteRoleLink()',
            ),
        )
    )); ?>
右/部件/行为/Rauthitembehavior

/**
    * Returns the markup for the delete role link.
    * @return string the markup.
    */
    public function getDeleteRoleLink()
    {
        // We do not want to show the delete link for the superuser role.
        if( $this->owner->name!==Rights::module()->superuserName )
        {
            return CHtml::linkButton(Rights::t('core', 'Delete'), array(
                'submit'=>array('authItem/delete', 'name'=>urlencode($this->owner->name)),
                'confirm'=>Rights::t('core', 'Are you sure you want to delete this role?'),
                'class'=>'delete-link',
                'csrf'=>Yii::app()->request->enableCsrfValidation,
            ));
        }
    }
我正在使用这个yii权限模块

如果我点击一个删除按钮,它会显示错误

TypeError: jQuery.yii is undefined
...nt to delete this role?')) {jQuery.yii.submitForm(this,'/index.php/rights/authIt...
TypeError: jQuery.yii is undefined
...nt to delete this role?')) {jQuery.yii.submitForm(this,'/index.php/rights/authIt...