===================
wow, My srbac is working now.
I have found out the source causing all of the matters:
-
css should be corrected—then it can show you where is wrong in red:
-
other configurations:
===============================
‘db’=>array(
'class'=>'CDbConnection',<------shouldn't be changed
'connectionString'=>'mysql:host=localhost;dbname=testdb',<------should be change according to yours
'username'=>'sys2009',<------should be change according to yours
'password'=>'mypwd', <------should be change according to yours
'charset'=>'utf8', <------should be change according to yours
),
=======================================================
//authManager
'authManager'=>array(
// The type of Manager (Database)
'class'=>'CDbAuthManager', <------shouldn't be changed
// The database component used
'connectionID'=>'db', <------shouldn't be changed
// The itemTable name (default:authitem)
'itemTable'=>'authitem', <------shouldn be corrected as this
// The assignmentTable name (default:authassignment)
'assignmentTable'=>'assignments', <------shouldn be corrected as this
// The itemChildTable name (default:authitemchild)
'itemChildTable'=>'itemchildren', <------shouldn be corrected as this ),
),
======================================
‘modules’=>array(
'srbac' => array(
'userclass'=>'User', <------should be change according to yours
'userid'=>'id', <------should be change according to yours
'username'=>'username', <------should be change according to yours
'debug'=>true,
'pageSize'=>10,
'superUser' =>'Authority',
'css'=>'srbac.css', <<<------shouldn be corrected as this!!!!
'layout'=>'application.views.layouts.main', <------shouldn't be changed
'notAuthorizedView'=>'application.views.site.login', <------shouldn't be changed
'alwaysAllowed'=>array( 'SiteLogin','SiteLogout','SiteIndex','SiteAdmin','SiteError','SiteContact','SiteCaptcha'),
'userActions'=>array(
'Show','View','List'),
'listBoxNumberOfLines' => 15,
'useAlwaysAllowedGui'=>true,<------shouldn't be changed
'imagesPath' =>"srbac.images", <------shouldn't be changed
'imagesPack'=>'tango',
'iconText'=>true,
'header'=>'srbac.views.authitem.header', <------shouldn't be changed
'footer'=>'srbac.views.authitem.footer', <------shouldn't be changed
'showHeader'=>true,
'showFooter'=>true,
),
'import'=>array(
'application.modules.srbac.controllers.SBaseController',
),