srbac table creation

My srbacmodule.php and config files are

srbacmodule.php




  //Private attributes

  /* @var $_icons String The path to the icons */

  private $_icons;

  /* @var $_yiiSupportedVersion String The yii version tha srbac supports */

  private $_yiiSupportedVersion = "1.1.0";

  /* @var $_version Srbac version */

  private $_version = "1.2";

  /* @var $_cssPublished boolean If css file exists and is published */

  private $_cssPublished = false;

  /* @var $_imagesPublished boolean If images files exists and are published */

  private $_imagesPublished = false;


  // Srbac Attributes

  /* @var $debug If srbac is in debug mode */

  private $_debug = true;

  /* @var $pagesize int The number of items displayed in each page*/

  private $_pageSize = 10;

  /* @var $alwaysAllowed mixed The actions that are always allowed*/

  private $_alwaysAllowed = array();

  /* @var $userActions mixed Operations assigned to users by default*/

  private $_userActions = array();

  /* @var $listBoxNumberOfLines integer The number of lines in the assign tabview listboxes  */

  private $_listBoxNumberOfLines = 10;

  /* @var $iconText boolean Display text next to the icons */

  private $_iconText = true;

  /* @var $_useHeader boolean Use header or not */

  private $_showHeader = true;

  /* @var $_useFooter boolean Use footer or not */

  private $_showFooter = true;

  /* @var $_cssUrl The url of the css file to register */

  private $_cssUrl;

  /* @deprecated $useAlwaysAllowedGui boolean */

  public $useAlwaysAllowedGui;

  /* @var $_message A warning/error message displayed in the top of each page */

  private $_message ="";


  /* @var $userid String The primary column of the users table*/

  public $userid = "user_id";

  /* @var $username String The username column of the users table*/

  public $username = "username";

  /* @var $userclass String The name of the users Class*/

  public $userclass = "User";

  /* @var $superUser String The name of the superuser */

  public $superUser = "Authority";

  /* @var $css string The css to use */

  public $css = "srbac.css";

  /* @var $notAuthorizedView String The view to render when unathorized access*/

  public $notAuthorizedView = "srbac.views.authitem.unauthorized";

  /* @var $imagesPath string The path to srbac images*/

  public $imagesPath = "srbac.images";

  /* @var $imagesPack String The images theme to use*/

  public $imagesPack = "noia";

  /* @var $header String Srbac header*/

  public $header = "srbac.views.authitem.header";

  /* @var $footer String Srbac footer*/

  public $footer = "srbac.views.authitem.footer";

  /* @var $alwaysAllowedPath String */

  public $alwaysAllowedPath = "srbac.components";

  /* @var $delimeter The delimeter used in modules between moduleId and itemId */

  public $delimeter = "@";






if($this->layout =="") {

      $this->layout = "application.views.layouts.main";

    }



config–>[main.php]




'import'=>array(

		'application.models.*',

		'application.components.*',

		'application.modules.srbac.controllers.SBaseController',

	),


	'modules'=>array(

		'srbac' => array(

            'userclass' => 'User',

            'userid' => 'user_ID',

            'username' => 'username',

            'debug' => true,

            'delimeter'=>"@",

            'pageSize' => 10,

            'superUser' => 'Authority',

            'css' => 'srbac.css',

            'layout' => 'application.views.layouts.main',

            'notAuthorizedView' => 'srbac.views.authitem.unauthorized',

            'alwaysAllowed'=>array( 'SiteLogin','SiteLogout','SiteIndex','SiteAdmin','SiteError', 'SiteContact','SiteCaptcha'),

            'userActions' => array('show', 'View', 'List'),

            'listBoxNumberOfLines' => 15,

			'useAlwaysAllowedGui'=>true,

            'imagesPath' => 'srbac.images',

            'imagesPack' => 'noia',

            'iconText' => true,

            'header' => 'srbac.views.authitem.header',

            'footer' => 'srbac.views.authitem.footer',

            'showHeader' => true,

            'showFooter' => true,

            'alwaysAllowedPath' => 'srbac.components',

        ),

		// uncomment the following to enable the Gii tool

		

		/*'gii'=>array(

			'class'=>'system.gii.GiiModule',

			'password'=>'123456',

		 	// If removed, Gii defaults to localhost only. Edit carefully to taste.

			'ipFilters'=>array('127.0.0.1','::1'),

		),

		*/

	),


	// application components

	'components'=>array(

		'authManager' => array(

			// The type of Manager (Database)

            'class'=>'application.modules.srbac.components.SDbAuthManager',							//'class' =>'CDbAuthManager', 'application.modules.srbac.components.SDbAuthManager',//	

			// The database component used

            'connectionID' => 'db',

			 // The itemTable name (default:authitem)

            'itemTable' => 'authitem',

			// The assignmentTable name (default:authassignment)

            'assignmentTable' => 'assignments',

			// The itemChildTable name (default:authitemchild)

            'itemChildTable' => 'itemchildren',

        ),

			'user'=>array(

			// enable cookie-based authentication

			'allowAutoLogin'=>true,

		),