Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

How to access db query from extension class in core folder?

Started by sunnykasera3107, February 05, 2019, 06:40:05 AM

Previous topic - Next topic

sunnykasera3107

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

abolabo

"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

sunnykasera3107

Awesome.......
Thanks a lot for this help. It works for me.  :)

Forum Rules Code of conduct
AbanteCart.com 2010 -