AbanteCart Community

AbanteCart Development => Development Help Needed => Topic started by: yonghan on September 14, 2014, 10:09:44 AM

Title: Is it possible to include php library in extension?
Post by: yonghan on September 14, 2014, 10:09:44 AM
Hi admins,i would like to ask if it's possible to add custom php library/helper for use within extension?Thanks a lot.
Title: Re: Is it possible to include php library in extension?
Post by: eCommerce Core on September 15, 2014, 02:00:41 PM
You can not hook to library/helper. You can create your own function in your extension and make it accessible where you need.

What are you trying to do, possibly we can look for solution?
Title: Re: Is it possible to include php library in extension?
Post by: yonghan on September 15, 2014, 08:07:55 PM
Hello ecommerce core,i would like to use phpJobScheduler  in custom extension.Here is the link : http://www.phpjobscheduler.co.uk/ (http://www.phpjobscheduler.co.uk/).Thanks
Title: Re: Is it possible to include php library in extension?
Post by: abolabo on September 18, 2014, 06:57:25 AM
ha.. we already developed jobs(tasks) in new version 1.2.0 but it's not stable for now.
anyway you can use your own "includes" in your extension.
Title: Re: Is it possible to include php library in extension?
Post by: yonghan on September 18, 2014, 07:53:20 AM
I got it,thanks a lot abolabo.I wonder if you know alternatives to cron jobs?As many user doesn't know how to set it up. :)
Title: Re: Is it possible to include php library in extension?
Post by: abolabo on September 18, 2014, 09:45:57 AM
I got it,thanks a lot abolabo.I wonder if you know alternatives to cron jobs?As many user doesn't know how to set it up. :)

we already researched solutions of php cron jobs but decided to write own:)
Title: Re: Is it possible to include php library in extension?
Post by: yonghan on September 18, 2014, 09:58:35 AM
Awesome.looking forward for abantecart cron job.Will it be using cron tab?