Post by Cue4cheap » Mon Oct 07, 2024 9:57 pm

Hello,

I have a product inventory extension I developed and am starting the process to completely re-write it.
The idea came to me to break it into two extensions.
Currently I run the update script via cron. I see some times where I would wish to check for a certain result, and then call the 2nd extension AND other times where the 2nd extension would be called on its own.

Is it possible for the proverbial "last line" of the controller to kick off the other extension?

Thank you,
Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by ADD Creative » Tue Oct 08, 2024 4:37 pm

You could end with a redirect if your cron follows them. You could use $this->load->controller to load another controller, the same was the header, footer, etc are loaded in most controllers. You could put the common code into a model or library and call that from the controllers.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 4 guests