Thanks Mancho for sending me down the right path. Reading through the
cakephp 1.3 cookbook has left me thoroughly confused regarding command
line interfaces, shell scripts and cron jobs.
My approach is to try and write a shell which will go in vendors/
shell, then I will trigger that shell from the Cron Job manager. I'm
assuming if I get the shell right, it will facilitate testing the CLI
command in my hostings Cron Job Manager. So my main question is what
is the best practice for asking the shell to run a controller/action?
It is some type of redirect(). Or, working off the example in the 1.3
cookbook, what code goes in function main()? Do I need to add the
associated model i.e. "var $uses = array('ModelName')? I don't know
where to start here.
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Sunday, May 5, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment