Which is the best Permission Management Extension for YII?

Dear Friends,

I am searching for best Permission Management Extension for YII.

I have successfully installed Srbac and Yii Rights extensions in my local machine copies. But I found login is not required to manage Srbac and YII Rights interfaces. Therefore I have two questions

  1. Which is the best Permission Management Extension for YII?

  2. How can i set login for Srbac or Yii Rights interfaces?

Please help. Thanks In Advance.

Rights denies access from all users but superusers. The installer will grant the superuser role to the user running it. Under Assignments you can add the superuser role to other users as well. I hope this helps.

Thank You.

This my Yii Rights url http://localhost/atportal/index.php/rights/assignment/view and issue is login is not required for adding the roles, assigning the roles etc…

This is my config file.

return array(


'name'=>'My Web Application',

// preloading 'log' component


// autoloading model and component classes










	// uncomment the following to enable the Gii tool








		'superuserName'=>'Admin', // Name of the role with super user privileges. 

		'authenticatedName'=>'Authenticated', // Name of the authenticated user role. 

		'userIdColumn'=>'id', // Name of the user id column in the database. 

		'userNameColumn'=>'username', // Name of the user name column in the database. 

		'enableBizRule'=>true, // Whether to enable authorization item business rules. 

		'enableBizRuleData'=>false, // Whether to enable data for business rules. 

		'displayDescription'=>true, // Whether to use item description instead of name. 

		'flashSuccessKey'=>'RightsSuccess', // Key to use for setting success flash messages. 

		'flashErrorKey'=>'RightsError', // Key to use for setting error flash messages. 

		'install'=>true, // Whether to install rights. 

		'baseUrl'=>'/rights', // Base URL for Rights. Change if module is nested. 

		'layout'=>'rights.views.layouts.main', // Layout to use for displaying Rights. 

		'appLayout'=>'application.views.layouts.main', // Application layout. 

		'cssFile'=>'rights.css', // Style sheet file to use for Rights. 

		'install'=>false, // Whether to enable installer. 

		'debug'=>false, // Whether to enable debug mode.				

	),// Add this line only if you wish to use the installer. 



// application components



		// enable cookie-based authentication




		'loginUrl' => array('/site/login'),	




	// uncomment the following to enable URLs in path-format	















	// uncomment the following to use a MySQL database


		'connectionString' => 'mysql:host=localhost;dbname=test',

		'emulatePrepare' => true,

		'username' => 'root',

		'password' => '',

		'charset' => 'utf8',

		'tablePrefix' => 'tbl_',



		// use 'site/error' action to display errors








				'levels'=>'error, warning',






Please help.

@mbigul: Please consult the Rights documentation for installation instructions.

There is a direct download link on the extension page.

Chris thank you very much for this useful extension. I have reinstalled Yii Rights, Yii User and now it is working fine.