Reputation: 12466
https://github.com/cakedc/users/tree/2.0
After extracting the cakedc users plugin i copied it to app/Plugin folder.
I ran this command and got error:
cake migration all -plugin users
Why is this error? It's cakephp-2.0 and after extracting the users plugin, i see the convention of the folders are like cakehp-1.3
Error: Shell class MigrationShell could not be found.
#0 /var/www/cakephp/lib/Cake/Console/ShellDispatcher.php(167): ShellDispatcher->_getShell('migration')
#1 /var/www/cakephp/lib/Cake/Console/ShellDispatcher.php(69): ShellDispatcher->dispatch()
#2 /var/www/cakephp/lib/Cake/Console/cake.php(24): ShellDispatcher::run(Array)
#3 {main}
How can i install this users plugin and use it ?
Upvotes: 2
Views: 3408
Reputation: 1237
Syntax is a bit wrong on the docs. For migration, (first install the CakeDC Migrations plugin) you should run ..
Console/cake Migrations.migration run all --plugin Users
Upvotes: 0
Reputation: 821
In case someone will search this, here's how to use Migrations and Users plugins from CakeDC with CakePHP 2.x:
1) Make sure you downloaded correct branches (2.0) from git. It can be checked by camel-cased directory names of plugins
2) Place them inside app/Plugins/ with corresponding names: Migrations
and Users
3) make sure you loaded plugins by including them in app/Config/bootstrap.php like:
CakePlugin::load('Migrations');
4) to import Users plugins scheme go to app/ and run command ./Console/cake Migrations.migration all --plugin Users
This sequence worked for me. Hope it will help someone else. If there are any improvements to this - all are welcome.
Upvotes: 6
Reputation: 11212
Upvotes: 1