[ask] instal Rights extenstion

sudah extract rightsnya ke C:\xampp\htdocs\myYii\protected\modules\rights

isi main.php


‘import’=>array(

	'application.models.*',


	'application.components.*',


	'application.modules.rights.*',


	'application.modules.rights.*',


),





'modules'=>array(


	// uncomment the following to enable the Gii tool


		'rights'=>array(


	'superuserName'=>'Admin',


	'authenticatedName=>Authenticated',


	'userIdColumn'=>'id',


	'userNameColumn'=>'username',


	'enableBizRule'=>true,


	'enableBizRuleData'=>false,


	'displayDescription'=>true,


	'flashSuccessKey'=>'RightsSuccess',


	'flashErrorKey'=>'RightsError',


	'install'=>true,


	'baseUrl'=>'/rights',


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


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


	'cssFile'=>'rights.css',


	),


	


	


	'gii'=>array(


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


		'password'=>'admin',


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


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


	),


	


),





// application components


'components'=>array(


	'user'=>array(


		//'class'=>'RWebUser',


		// enable cookie-based authentication


		'allowAutoLogin'=>true,


	),


	'authManager'=>array(


    	'class'=>'RDbAuthManager',


    	'connectionID'=>'db',


	),


.....................

);

pas di run keluar error [Property "RightsModule.0" is not defined. ]

ada yang bisa bantu kenapa ni…

tq

Hello sakaw, welcome to the forum!

You can post non-English messages in the language-specific forums.

Please post in English here so we can help you. Thanks!

sory2…n tq for replay^^

first i extract Rights folder to :C:\xampp\htdocs\myYii\protected\modules\rights

in main.php:




'import'=>array(

		'application.models.*',

		'application.components.*',

		'application.modules.rights.*',

		'application.modules.rights.components.*',

	),


	'modules'=>array(

		// uncomment the following to enable the Gii tool

			'rights'=>array(

			'install'=>false,

		

		'superuserName'=>'dodo',

		

		//'authenticatedName=>Authenticated',

		'userIdColumn'=>'id',

		'userNameColumn'=>'username',

		/*

		'enableBizRule'=>true,

		'enableBizRuleData'=>false,

		'displayDescription'=>true,

		'flashSuccessKey'=>'RightsSuccess',

		'flashErrorKey'=>'RightsError',

		

		'baseUrl'=>'/rights',

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

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

		'cssFile'=>'rights.css',

		*/

		),

 	);   

'components'=>array(

		'user'=>array(

			'class'=>'RWebUser',

			// enable cookie-based authentication

			'allowAutoLogin'=>true,

		),

		'authManager'=>array(

        	'class'=>'RDbAuthManager',

        	'connectionID'=>'db',

    	),

.......

);



in my controller




	public function filters()

	{

	

      	return array(

			'rights',

		);  



and when i run /index.php?r=rights i got erro [Error 403 There must be at least one superuser]

I have the same cuestion, what is the url line command to run the rights install ???, i quote the text in the rights oficial setup manual.

yii-rights-doc-1.2.0.pdf

I find the possible install script for rights in:

my_project\protected\modules\rights\components\RInstaller.php

proves to call it directly, although not think it should be so.

I try to run:


http://localhost/my_project/protected/modules/rights/components/RInstaller.php

And the server return the error message:

The Solution to Install Right are you run the url command:


http://localhost/my_project/index.php/rights

To execute the rights install.