How to setup magento cron job and init action of the controller?
As above, is there a way to do it? How can I define it in config.开发者_StackOverflowxml of my custom module?
As far as I have ever seen, you cannot directly run controller actions in a cronjob, since that is not a terribly sensible thing to do outside of a user context. The easiest thing to do here is to put that functionality you need into a model and call that from the cronjob.
More information on the controller action you want to fire would be helpful in giving further advice.
Hope that helps!
Thanks, Joe
精彩评论