Hi guys and gals,
I am building an integration with an inventory management app and we need to run code based on a cron job or scheduled task.
I have found this article:
http://kb.x-cart.com/pages/viewpage.action?pageId=7504112 and I now understand that the entry point for cron jobs is console.php
What I don't understand is the proper way to include my viewer or controller class in with the group that is run by console.php
I have found this class XLite\Controller\Console\AConsole.php and when I put error_log() in one of its methods the log is created. So I know that it is running when a request is made to console.php
My question is: How do I include my code in this cron job? Do I need to extend or decorate a certain class? Perhaps I add my class to a certain list?
Thanks in advance for any help.