Tuesday, July 31, 2012

Problem With console plugin

Hi

I'm get trouble to bake a plugin with cakephp 2.x , I'm searching days a solution and didn't find any answer
I'm working with ubuntu and I install cake in the directory /usr/share/php/cake/ and my website directory is /home/hugo/www/miko/

I try to bake a model in my plugin Miko with this commande:
hugo@hugo-Presario-C700-Notebook-PC:~/www/miko/app$ cake bake plugin Miko

Welcome to CakePHP v2.1.4 Console
---------------------------------------------------------------
App : app
Path: /home/hugo/www/miko/app/
---------------------------------------------------------------
1. /home/hugo/www/miko/app/Plugin/
2. /usr/share/php/cake/plugins/
Choose a plugin path from the paths above. 
> 1
---------------------------------------------------------------
Plugin Name: Miko
Plugin Directory: /home/hugo/www/miko/app/Plugin/Miko
---------------------------------------------------------------
Look okay? (y/n/q)
[y] > y


cake bake model --plugin Miko

and it show me wrong directory

Welcome to CakePHP v2.1.4 Console
---------------------------------------------------------------
App : app
Path: /home/hugo/www/miko/app/
---------------------------------------------------------------
---------------------------------------------------------------
Bake Model
Path: /usr/share/php/cake/plugins/Miko/Model/
---------------------------------------------------------------
Use Database Config: (default/test)

Is Anyone know where is my mistake?

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: