Here they are:
1) Problem with config. Finally ... AuthManager in protected/config/main.php should looks like this:
<?php return array( //......some code..... // application components 'components'=>array( 'authManager' => array( 'class' => 'CDbAuthManager', 'connectionID' => 'db', 'itemTable' => 'AuthItem', 'itemChildTable' => 'AuthItemChild', 'assignmentTable' => 'AuthAssignment', 'defaultRoles' => array('Guest'), ), ), // autoloading model and component classes 'import'=>array( 'application.models.*', 'application.components.*', 'application.modules.srbac.controllers.SBaseController', ), 'modules'=>array( 'srbac' => array( 'userclass' => 'User', 'userid' => 'id', 'username' => 'username', 'debug' => true, 'pageSize' => 20, 'superUser' => 'Authority', 'css' => 'srbac.css', // <=====changed //'notAuthorizedView' => 'application.theme.unauthorized', // <=====changed 'userActions' => array('Show','View','List','Index'), 'listBoxNumberOfLines' => 15, //'imagesPath' => 'images', //'imagesPack' => 'noia', 'iconText' => true, 'layout' => 'webroot.themes.THEME_NAME.views.layouts.nocolumn', // <=====changed (use this alias if you use theme in yii) ), ), ); ?>2) I got problems with "lower case table names" in mySQL. To allow upper case in mySQL use this advice: 'add this line lower_case_table_names=2 to your my.ini file and restart wamp' http://www.wampserver.com/phorum/read.php?2,58873
Комментариев нет:
Отправить комментарий