AbanteCart Development > Development Help Needed
How to access db query from extension class in core folder?
(1/1)
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:
Hi.
You can look into another extension hook for example.
https://github.com/abantecart/abantecart-src/blob/1.2.14/public_html/extensions/banner_manager/core/custom_block_hook.php#L50
sunnykasera3107:
Awesome.......
Thanks a lot for this help. It works for me. :)
Navigation
[0] Message Index
Go to full version