Problem w/ Shells

2009-02-15 Thread Kyle Decot

I'm trying to create a shell but I'm running into some problems. If I
add $uses = array(User); to my shell then I get:

Error: Missing Database Connection. Try 'cake bake'

Any ideas? I'm new to shells so I have no clue. Any help is, as
always, appreciated.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~--~~~~--~~--~--~---



Re: Problem w/ Shells

2009-02-15 Thread Kyle Decot

Anyone have any ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~--~~~~--~~--~--~---



Re: Problem w/ Shells

2009-02-15 Thread Adam Royle

Have you checked your database connection? (Just a thought)

Also, with shells you need to ensure you execute the shell from the app 
folder, or specify the path to your app in -app

Cheers,
Adam

Kyle Decot wrote:
 I'm trying to create a shell but I'm running into some problems. If I
 add $uses = array(User); to my shell then I get:

 Error: Missing Database Connection. Try 'cake bake'

 Any ideas? I'm new to shells so I have no clue. Any help is, as
 always, appreciated.
 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~--~~~~--~~--~--~---



Re: Problem w/ Shells

2009-02-15 Thread Kyle Decot

I figured out what the problem was. I was incorrectly specifying the
path to my app.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~--~~~~--~~--~--~---