OK I got the args problem sorted out. To get the args in a shell you use $this->args.
However, I'd still like suggestions on the shell best practices for code location. On Aug 27, 9:33 am, Rick <[EMAIL PROTECTED]> wrote: > I thought I would be able to use the 1.2 Console for a command line > (cake shell) application that is closely associated with a web app. > However afer a few hours of trying I was not able to figure out how to > implement command line arguments the shell app. > > I tried something like > > cake appname argument > > which yielded something like "command missing". Is it possible to run > a generic app and send it command line arguments? > > What would be best practice for the application code? All code in the > vendor/shells directory? I'm inclined to put the main() code in the > app/... directories with only the main() in the shells directory to > start the app. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
