I have created a shell in my vendors/shells/ folder called raw.php
(Cake 1.2). The console shell stuff would be extremely helpful to me
if I could get it working, but I can seem to access the shell I
created (just a small test one at this point).
The actual shell looks like this:
-----------------------------------------------------------
class RawShell extends Shell {
var $uses = array('Location');
function main() {
$locations = $this->Location->findAll();
foreach($locations as $location) {
$this->out($location['city'] . "\n");
}
}
}
-----------------------------------------------------------
When I execute cake via command line (windows), I get the cake
standard response with the the paths shown. However, under available
shells, it doesn't list the "Raw" shell I created.
I've tried executing Raw after changing my paths around and
experimented with various changes, but, I can never get my Raw shell
to show up or execute. I'm using the docs at tempdocs.cake.org as a
reference.
Any troubleshooting help would be greatly appreciated!
- Cake Fan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---