Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Is it possible to include php library in extension?  (Read 6550 times)

yonghan

  • Guest
Is it possible to include php library in extension?
« 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.

Offline eCommerce Core

  • Administrator
  • Hero Member
  • *****
  • Posts: 1602
  • Karma: +93/-1
    • View Profile
Re: Is it possible to include php library in extension?
« Reply #1 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?
“If you’re in the luckiest one per cent of humanity, you owe it to the rest of humanity to think about the other 99 per cent.”
― Warren Buffett

yonghan

  • Guest
Re: Is it possible to include php library in extension?
« Reply #2 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/.Thanks

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Is it possible to include php library in extension?
« Reply #3 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.
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

yonghan

  • Guest
Re: Is it possible to include php library in extension?
« Reply #4 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. :)

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Is it possible to include php library in extension?
« Reply #5 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:)
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

yonghan

  • Guest
Re: Is it possible to include php library in extension?
« Reply #6 on: September 18, 2014, 09:58:35 AM »
Awesome.looking forward for abantecart cron job.Will it be using cron tab?

 

Powered by SMFPacks Social Login Mod