这两天用了下rights的权限管理系统,除了性能稍微差点以为,还是挺不错。但是发现一个问题就是由CDbAuthManager继承的RDbAuthManager
rights模块创建之后的几个表是没有表前缀的。
因此发现CDbAuthManager里边的
/**
* @var string the name of the table storing authorization items. Defaults to 'AuthItem'.
*/
public $itemTable='AuthItem';
/**
* @var string the name of the table storing authorization item hierarchy. Defaults to 'AuthItemChild'.
*/
public $itemChildTable='AuthItemChild';
/**
* @var string the name of the table storing authorization item assignments. Defaults to 'AuthAssignment'.
*/
public $assignmentTable='AuthAssignment';
应该都加上{{}}
如
public $itemTable='{{AuthItem}}';