PHP, Yii user extension

I am trying to install the yii extension http://www.yiiframework.com/extension/yii-user/ and try to insert the command 'yiic migrate --migrationPath = user.migrations'. How to do it right so that it works instead of:

C:\xampp\htdocs\eshops\protected>..\framework\yiic migrate --migrationPath=modules.user.migrations Error: The migration directory does not exist: modules.user.migrations C:\xampp\htdocs\eshops\protected>cd .. C:\xampp\htdocs\eshops>framework\yiic migrate --migrationPath=protected.modules.user.migrations Error: The migration directory does not exist: protected.modules.user.migrations C:\xampp\htdocs\eshops>cd protected C:\xampp\htdocs\eshops\protected>..\framework\yiic migrate --migrationPath=user.migrations Error: The migration directory does not exist: user.migrations 

I have XAMPP and windows 7.

thanks

+4
source share
3 answers

answer:

there are 2 files named yiic.php

  • ../yu/framwork/yiic.php

  • ... / protected / yiic.php

you should use the second

+5
source

Use yiic migrate --migrationPath=application.modules.user.migrations

+2
source

Make sure you have the latest version of user yii, it's harder than you think! There are a couple of errors when installing the yii user, and this article goes through them to make the migration work.

http://www.bigsoft.co.uk/blog/index.php/2013/12/08/which-is-the-latest-version-of-yii-user

0
source

Source: https://habr.com/ru/post/1446901/


All Articles