Hello. I trying to use srbac. But, after configuration of authManager and srbac, my browser cannot retrieve url “index.php?r=srbac/authItem/install” with message “Page not found”. What’s the problem?
Where I use this code? let me know.
My directory path:
/protected/config/main.php – this is my main config file
/components
/controllers
/extensions
/messages
/models
/views ----here I put sbrac folder
srbac in modules:
‘srbac’=>
array(
// Your application’s user class (default: User)
"userclass"=>"User",
// Your users’ table user_id column (default: userid)
"userid"=>"user_ID",
// your users’ table username column (default: username)
"username"=>"username",
// If in debug mode (default: false)
// In debug mode every user (even guest) can admin srbac, also
//if you use internationalization untranslated words/phrases
//will be marked with a red star
"debug"=>true,
// The number of items shown in each page (default:15)
"pageSize"=>10,
// The name of the super user
"superUser" =>"Authority",
//The css file to use
"css"=>"srbac_red.css", // must be in srbac css folder
//The layout to use
"layout"=>"application.views.layouts.admin",
//The not authorized page
"notAuthorizedView"=>"application.views.site.unauthorized",
// The always allowed actions
"alwaysAllowed"=>array(
‘SiteLogin’,‘SiteLogout’,‘SiteIndex’,‘SiteAdmin’,
‘SiteError’, ‘SiteContact’),
// The operationa assigned to users
"userActions"=>array(
"Show","View","List"
),
)