Re: Problem With console plugin

2012-08-01 Thread majna
Try 
cake bake model Miko.MyModelName

You can always run

cake bake model

to see the list of available models (tables)

On Wednesday, August 1, 2012 8:50:37 AM UTC+2, Hugues Mary wrote:
>
> 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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Problem With console plugin

2012-08-01 Thread Hugues Mary
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php