Cake console shell error - not able to see App

2014-01-27 Thread Nif
Hi All, I am new to the cake console and especially to creating a shell to run in/on it. The research I have done says it should be possible to call App from the shell and the examples I have seen use code like the below to do so. ?php App::uses('AppShell', 'Console/Command');

Re: Cake console shell error - not able to see App

2014-01-27 Thread Nif
OK... it was me. All me. I was missing a semi-colon ;p I do however have a new issue. I manage to call in my Component, but that component calls one of my controllers and this is now throwing an error when running in the console. I need all the functionality to be accessible to both the web

Cake console shell

2010-06-04 Thread Edwin
Hi all, When trying to run /path_to/cake/console/cake mail in shell I get the following error: Error: Class MailShell could not be loaded. Can anybody perhaps point me in the right direction why i get this error? Thanks! Check out the new CakePHP Questions site http://cakeqs.org and help

Re: Cake console shell

2010-06-04 Thread euromark
just type cake and you will see the available shells yours is not in that list i guess On 4 Jun., 12:20, Edwin edwink...@gmail.com wrote: Hi all, When trying to run /path_to/cake/console/cake mail in shell I get the following error: Error: Class MailShell could not be loaded. Can anybody

Re: Cake console shell

2010-06-04 Thread Edwin
Thanks, got it working! I forgot to add the -app parameter. Is there any parameter or way that i can dissable any output from the console? E.g. don't display the Welcome to CakePHP v1.3.0 Console etc. Thanks again On Jun 4, 12:38 pm, euromark dereurom...@googlemail.com wrote: just type cake

Re: Cake console shell

2010-06-04 Thread euromark
why does it bother you? :) just ignore it On 4 Jun., 13:59, Edwin edwink...@gmail.com wrote: Thanks, got it working! I forgot to add the -app parameter. Is there any parameter or way that i can dissable any output from the console? E.g. don't display the Welcome to CakePHP v1.3.0 Console

Re: Cake console shell

2010-06-04 Thread euromark
PS: you would need to override startup() in all shell scripts - even the core ones... On 4 Jun., 15:27, euromark dereurom...@googlemail.com wrote: why does it bother you? :) just ignore it On 4 Jun., 13:59, Edwin edwink...@gmail.com wrote: Thanks, got it working! I forgot to add the

Re: Cake console shell

2010-06-04 Thread Edwin
Because I'm using it for email piping. When I'm running the shell it will reply the email with the CakePHP Console message. Will give the overriding startups a try.. but there must be a better solution? Thanks! On Jun 4, 3:27 pm, euromark dereurom...@googlemail.com wrote: why does it bother