Jump to content

Cron access to module


chris_ryu

Recommended Posts

Hi,

 

I have my custom BackOffice module which imports product data from CSV files.

Currently I manually enter the "Configuration Page" of the module and then it starts importing.

 

But I want to make it automated with cron job. The problem is:

How can I make a PHP file with my BackOffice module which can be accessed by crontab?

 

Usually BO modules can be accessed only after login.

 

Maybe I should do it another way... if so please tell me how :)

 

Regards,

Chris

Edited by chris_ryu (see edit history)
Link to comment
Share on other sites

Works like a charm! Thanks :)

 

I considered this solution, but had no idea if it will include everything.

Is it good to have set cron action in module via $_GET variable like: "?cron=1"?

Only if it is set I include config and use module object

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...