Yii Framework Forum: Extension Yii-User - Yii Framework Forum

Jump to content

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

Extension Yii-User Rate Topic: -----

#1 User is offline   chamor 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 27-February 13

Posted 27 February 2013 - 11:34 PM

Hi. I'm new here and just started using yii. I found the yii-user extension and i am having trouble installing it. I tried posting in the thread of the yii-user extension page itself to ask question but it is saying that I don't have permission yet to comment there since I am still new. So here I am posting here. Anyway here is my problem. After unzipping the yii-user extension in the protected folder and editing the config main and console file, I tried running "yiic migrate --migrationPath=user.migrations" inside my webapp folder or inside the protected of my webapp folder (almost tried every folder and ran this) but it keeps on saying that the user migration folder does not exist. Can anyone please help me? By the way, I am running on ubuntu 12.04 lts. Thanks in advance.
0

#2 User is offline   julienA 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 13-February 13

Posted 15 March 2013 - 05:57 AM

View Postchamor, on 27 February 2013 - 11:34 PM, said:

Hi. I'm new here and just started using yii. I found the yii-user extension and i am having trouble installing it. I tried posting in the thread of the yii-user extension page itself to ask question but it is saying that I don't have permission yet to comment there since I am still new. So here I am posting here. Anyway here is my problem. After unzipping the yii-user extension in the protected folder and editing the config main and console file, I tried running "yiic migrate --migrationPath=user.migrations" inside my webapp folder or inside the protected of my webapp folder (almost tried every folder and ran this) but it keeps on saying that the user migration folder does not exist. Can anyone please help me? By the way, I am running on ubuntu 12.04 lts. Thanks in advance.

I did not have to run this command to make it work. I think this command is just for migrating existing users, which was not my case, and could be easily done by couple of sql queries.
0

#3 User is offline   Denit S. 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 13-March 13
  • Location:Netherlands

Posted 26 March 2013 - 08:22 AM

Depending on where you've put the yii-user extensions you will have to change the migrationpath (it's basically just a Yii alias).

For the `user` alias (in user.migrations), the module user also has to be enabled in your config/console.php (copy everything concerning this module from your config/main.php)

'modules'=>array(
        #...
        'user'=>array(



Alternatively this might work (but I wouldn't recommend it because the module's config will not be available, just to show you how yii aliases work for migrations):

$ ./yiic migrate --migrationPath=application.modules.user.migrations

Here are some tunes for you to enjoy! listen, listen, listen.
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