[color="#FF0000"]CException[/color]
Application authorization manager must extend the RDbAuthManager class.
[color="#FF0000"]CException[/color]
Application authorization manager must extend the RDbAuthManager class.
Você está utilizando um módulo chamado YII RIGHTS para gerenciamento de permissões de usuários?
Sim estou usando o YII RIGHTS, para controle de acesso.
Olá Felipe,
O módulo Yii-Rights precisa ser instalado em seu projeto, verifique se em seu main.php a opção de instalação do módulo está ativa conforme o exemplo abaixo:
'modules'=>array(
'rights'=>array(
'install'=>true, // Enables the installer.
),
),
Caso não funcione verifique o arquivo de configurações do próprio Yii Rights se o parÂmetro insttal está definido com "true", exemplo:
'rights'=>array(
'superuserName'=>'Admin', // Name of the role with super user privileges.
'authenticatedName'=>'Authenticated', // Name of the authenticated user role.
'userIdColumn'=>'id', // Name of the user id column in the database.
'userNameColumn'=>'username', // Name of the user name column in the database.
'enableBizRule'=>true, // Whether to enable authorization item business rules.
'enableBizRuleData'=>false, // Whether to enable data for business rules.
'displayDescription'=>true, // Whether to use item description instead of name.
'flashSuccessKey'=>'RightsSuccess', // Key to use for setting success flash messages.
'flashErrorKey'=>'RightsError', // Key to use for setting error flash messages.
'install'=>true, // Whether to install rights.
'baseUrl'=>'/rights', // Base URL for Rights. Change if module is nested.
'layout'=>'rights.views.layouts.main', // Layout to use for displaying Rights.
'appLayout'=>'application.views.layouts.main', // Application layout.
'cssFile'=>'rights.css', // Style sheet file to use for Rights.
'install'=>false, // Whether to enable installer.
'debug'=>false, // Whether to enable debug mode.
),
Por fim se sua instalação estiver correta e ainda o módulo apresentar a mensagem de erro tente a seguinte abordagem:
Modifique a linha #48 do arquivo RInstaller.php para:
if( ($authManager instanceof RDbAuthManager)===false )
e a linha #54 pata
if( ($user instanceof RWebUser)===false )
Bom dia Davi,
As configurações do meu arquivo estão de acordo com a que tu postaste, principalmente sobre as linhas #48 e #54, porém a mensagem continua, estou analisando o código junto ao meu coordenador de projetos.
Agradeço sua colaboração.
Davi,
Após varias tentativas conseguimos integrar a aplicação, agradeço sua ajuda. Muito obrigado.