I want to run a cron job and function but I can't get it to work.
What I've been doing to set up cron job functions is to put a script in a dedicated cron dir outside the OC dir and running it like:
Code: Select all
php -f /home/path/to/file.php function_name
So I tried to do that with the function left in the model dir, but it doesn't work.
Code: Select all
php -f /home/path/to_file/catalog/model/extension/module/file.php function_name
How do I activate a function by ways of cron if the file and function is left in the model dir (standard model file, not a dedicated script file)?