在数据库中进行了一些更改,然后进行同步,它在数据库更改之前工作正常,但现在当管理员或任何人登录时,会出现此错误,当我刷新页面时,我需要{{ 1}}。我设置的角色是,无论何时管理员或所有者登录,他都应该重定向到业务页面,但现在重定向也不起作用。
答案 0 :(得分:0)
问题不在于数据库,问题在于编写代码,请确保必须在config.main中编写代码
'import' => array(
'application.models.*',
'application.components.*',
'bootstrap.behaviors.*',
'bootstrap.helpers.*',
'bootstrap.widgets.*',
//add this code after the above code and thats it, a small stupid mistake may cost you 3 days of hard debugging.
'application.modules.user.models.*',
'application.modules.user.components.*',
'application.modules.rights.*',
'application.modules.rights.components.*'
),