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

Support AbanteCart eCommerce

Author Topic: How to access db query from extension class in core folder?  (Read 515 times)

Offline sunnykasera3107

  • Newbie
  • *
  • Posts: 10
  • Karma: +5/-0
    • View Profile
How to access db query from extension class in core folder?
« on: February 05, 2019, 06:40:05 AM »
Hi,

Currently, Working on Extension Class in the core folder. I am not getting how to access model or how to access db->query from extension class?
When I try to load any model in extension class so it says undefined method of null object. And same for db query.

Anyone please help me. Small hint will be enough to understand it.


Thank You

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1782
  • Karma: +247/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline sunnykasera3107

  • Newbie
  • *
  • Posts: 10
  • Karma: +5/-0
    • View Profile
Re: How to access db query from extension class in core folder?
« Reply #2 on: February 05, 2019, 06:51:26 AM »
Awesome.......
Thanks a lot for this help. It works for me.  :)

 

Powered by SMFPacks Social Login Mod