Yii Framework Forum: How to run the url command to install RIGHTS - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to run the url command to install RIGHTS The yii-rights-doc-1.2.0.pdf, dont explain this.

#1 User is offline   graphixx 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 33
  • Joined: 13-May 11
  • Location:Medellin/Colombia

Posted 08 June 2011 - 11:57 AM

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

Quote

Page 5
Installer
You can easily install Rights using its installer component. To enable the installer set the install-configuration to true. The installer will create the required database and insert necessary authorization items and assignments. In case the module is already installed you will be asked to confirm to overwrite the current data. Please note that all existing data will be lost when you reinstall. Tip: If you run into problems with the installer make sure that your database user has write privileges.


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:

Quote

Fatal error: Class 'CApplicationComponent' not found in C:\Program Files\Zend\Apache2\htdocs\fovis\protected\modules\rights\components\RInstaller.php on line 10


thanks for your future answers, best regards.
0

#2 User is offline   Gustavo 

  • Master Member
  • Yii
  • Group: Moderators
  • Posts: 916
  • Joined: 27-July 10
  • Location:Curitiba - Brasil

Posted 08 June 2011 - 12:03 PM

This is just a guess, I haven't used it yet but
you should modify the module's configuration adding
'modules'=>array(
  'rights'=>array(
	'install'=>true
  ),
),

--
Extensions:
translate modue - module to handle translations
multiActiveRecord - db selection in models
redisCache - redis cache component
mpCpanel - interact with cpanel api
mUploadify - use uploadify uploader in your application

Gustavo Salomé Silva
0

#3 User is offline   graphixx 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 33
  • Joined: 13-May 11
  • Location:Medellin/Colombia

Posted 08 June 2011 - 02:29 PM

Yes Gustavo, i applies these changes now... thanks for your reply.

The solution are run te url:
http://localhost/my_project/index.php/rights
To execute the rights install.
0

#4 User is offline   deez 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 19
  • Joined: 04-January 12

Posted 18 January 2012 - 06:33 PM

For anyone looking how to run the installer for the Rights extension, navigate to this URL once you have followed the instructions in the documentation:

path/to/your/application/index.php?r=rights/install

This should get it if you haven't made other mistakes.

Hope this helps someone.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users