ybt7755221 2012-09-28 07:23:29 3236次浏览 2条回复 0 0 0

我在yii中使用了ckediter+ckfinder 的设置,是可以用的,但后来加上权限管理以后,会提示 The system is unable to find the requested action "ckfinder".

public function filters()
{
    return array(
        'accessControl', // perform access control for CRUD operations
        
    );
}


public function accessRules()
{
    return array(
        array('allow',  // allow all users to perform 'index' and 'view' actions
            'actions'=>array('index','view','ckfinder'),
            'users'=>array('*'),
        ),
        array('allow', // allow authenticated user to perform 'create' and 'update' actions
            'actions'=>array('create','update'),
            'users'=>array('@'),
        ),
        array('allow', // allow admin user to perform 'admin' and 'delete' actions
            'actions'=>array('admin','delete'),
            'users'=>array('admin'),
        ),
        array('deny',  // deny all users
            'users'=>array('*'),
        ),
    );
}

注销掉这段权限处理就好了,加上就提示 The system is unable to find the requested action "ckfinder".求高手帮忙~~

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